DataProviderException 构造函数

定义

重载

DataProviderException()

初始化 DataProviderException 类的新实例。

DataProviderException(String)

初始化 DataProviderException 类的新实例,指定错误消息。

DataProviderException(SerializationInfo, StreamingContext)

用序列化数据初始化 DataProviderException 类的新实例。

DataProviderException(String, Exception)

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

DataProviderException()

初始化 DataProviderException 类的新实例。

protected:
 DataProviderException();
protected DataProviderException ();
Protected Sub New ()

适用于

DataProviderException(String)

初始化 DataProviderException 类的新实例,指定错误消息。

protected:
 DataProviderException(System::String ^ message);
protected DataProviderException (string message);
new Microsoft.VisualStudio.Data.Core.DataProviderException : string -> Microsoft.VisualStudio.Data.Core.DataProviderException
Protected Sub New (message As String)

参数

message
String

描述错误的消息。

适用于

DataProviderException(SerializationInfo, StreamingContext)

用序列化数据初始化 DataProviderException 类的新实例。

protected:
 DataProviderException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DataProviderException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.Data.Core.DataProviderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.Data.Core.DataProviderException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

承载序列化对象数据的对象。

context
StreamingContext

关于来源和目标的上下文信息

适用于

DataProviderException(String, Exception)

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

protected:
 DataProviderException(System::String ^ message, Exception ^ innerException);
protected DataProviderException (string message, Exception innerException);
new Microsoft.VisualStudio.Data.Core.DataProviderException : string * Exception -> Microsoft.VisualStudio.Data.Core.DataProviderException
Protected Sub New (message As String, innerException As Exception)

参数

message
String

描述错误的消息。

innerException
Exception

导致当前异常的异常。 如果 innerException 参数不为 null,则在处理内部异常的 catch 块中引发当前异常。

适用于