DataConnectionOpenCanceledException 构造函数 (String, Exception)

选件类构造函数。使用指定错误消息和对作为此异常原因的内部异常的引用来初始化 DataConnectionOpenCanceledException 类的新实例。

命名空间:  Microsoft.VisualStudio.Data
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
public DataConnectionOpenCanceledException(
    string message,
    Exception innerException
)
public:
DataConnectionOpenCanceledException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> DataConnectionOpenCanceledException
public function DataConnectionOpenCanceledException(
    message : String, 
    innerException : Exception
)

参数

  • message
    类型:System.String
    解释异常原因的错误信息。

备注

如果 innerException 参数不是 nullnull 引用(在 Visual Basic 中为 Nothing) 引用,当前异常将在catch块处理内部异常。

.NET Framework 安全性

请参见

参考

DataConnectionOpenCanceledException 类

DataConnectionOpenCanceledException 重载

Microsoft.VisualStudio.Data 命名空间