DataProviderException 构造函数 (String, Exception)

初始化 DataProviderException 选件类的新实例,指定错误消息和对作为此异常原因的内部异常。

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

语法

声明
Protected Sub New ( _
    message As String, _
    innerException As Exception _
)
protected DataProviderException(
    string message,
    Exception innerException
)
protected:
DataProviderException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> DataProviderException
protected function DataProviderException(
    message : String, 
    innerException : Exception
)

参数

  • innerException
    类型:System.Exception
    导致当前异常的异常。如果 innerException 参数不为 nullnull 引用(在 Visual Basic 中为 Nothing),则当前异常在处理内部异常的 catch 块中引发。

备注

因前一个异常而直接引发的异常可以在 InnerException 属性中包含对前一个异常的引用。InnerException 属性返回的值与传递到构造函数中的值相同;或者,如果 InnerException 属性没有向构造函数提供内部异常值,则为 nullnull 引用(在 Visual Basic 中为 Nothing)。

此构造函数在DDEX运行时通常只有调用。

.NET Framework 安全性

请参见

参考

DataProviderException 类

DataProviderException 重载

Microsoft.VisualStudio.Data.Core 命名空间