Share via


DataProviderException Constructors

Definition

Overloads

DataProviderException()

Class constructor. Initializes a new instance of the DataProviderException class.

DataProviderException(String)

Class constructor. Initializes a new, parameterized instance of the DataProviderException class with the name of the DDEX provider.

DataProviderException(SerializationInfo, StreamingContext)

Class constructor. Initializes a new, parameterized instance of the DataProviderException class with serialized data.

DataProviderException(String, Exception)

Class constructor. Initializes a new, parameterized instance of the DataProviderException class with a specified error message and a reference to the inner exception that caused this exception.

DataProviderException(String, String)

Class constructor. Initializes a new, parameterized instance of the DataProviderException class with a specified provider name and error message.

DataProviderException(String, String, Exception)

Class constructor. Initializes a new instance of the DataProviderException class with a specified provider name, error message and a reference to the inner exception that is the cause of this exception.

DataProviderException()

Class constructor. Initializes a new instance of the DataProviderException class.

public:
 DataProviderException();
public DataProviderException ();
Public Sub New ()

Applies to

DataProviderException(String)

Class constructor. Initializes a new, parameterized instance of the DataProviderException class with the name of the DDEX provider.

public:
 DataProviderException(System::String ^ providerName);
public DataProviderException (string providerName);
new Microsoft.VisualStudio.Data.DataProviderException : string -> Microsoft.VisualStudio.Data.DataProviderException
Public Sub New (providerName As String)

Parameters

providerName
String

The name of the DDEX provider that caused the error.

Applies to

DataProviderException(SerializationInfo, StreamingContext)

Class constructor. Initializes a new, parameterized 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.DataProviderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.Data.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)

Class constructor. Initializes a new, parameterized instance of the DataProviderException class with a specified error message and a reference to the inner exception that caused this exception.

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

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

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

Applies to

DataProviderException(String, String)

Class constructor. Initializes a new, parameterized instance of the DataProviderException class with a specified provider name and error message.

public:
 DataProviderException(System::String ^ providerName, System::String ^ message);
public DataProviderException (string providerName, string message);
new Microsoft.VisualStudio.Data.DataProviderException : string * string -> Microsoft.VisualStudio.Data.DataProviderException
Public Sub New (providerName As String, message As String)

Parameters

providerName
String

The name of the provider that caused the error.

message
String

The error message that explains the reason for the exception.

Applies to

DataProviderException(String, String, Exception)

Class constructor. Initializes a new instance of the DataProviderException class with a specified provider name, error message and a reference to the inner exception that is the cause of this exception.

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

Parameters

providerName
String

The name of the provider that caused the error.

message
String

The error message that explains the reason for the exception.

innerException
Exception

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

Applies to