다음을 통해 공유


DataProviderException Constructors

Definition

Overloads

DataProviderException()

Initializes a new instance of the DataProviderException class.

DataProviderException(String)

Initializes a new instance of the DataProviderException class, specifying an error message.

DataProviderException(SerializationInfo, StreamingContext)

Initializes a new instance of the DataProviderException class with serialized data.

DataProviderException(String, Exception)

Initializes a new instance of the DataProviderException class, specifying an error message and a reference to the inner exception that is the cause of this exception.

DataProviderException()

Initializes a new instance of the DataProviderException class.

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

Applies to

DataProviderException(String)

Initializes a new instance of the DataProviderException class, specifying an error message.

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)

Parameters

message
String

The message that describes the error.

Applies to

DataProviderException(SerializationInfo, StreamingContext)

Initializes a new instance of the DataProviderException class with serialized data.

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)

Parameters

info
SerializationInfo

The object that holds the serialized object data.

context
StreamingContext

The contextual information about the source or destination.

Applies to

DataProviderException(String, Exception)

Initializes a new instance of the DataProviderException class, specifying an error message and a reference to the inner exception that is the cause of this exception.

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)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Applies to