ConnectionFailureException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the ConnectionFailureException class.
Overloads
ConnectionFailureException() |
Initializes a new instance of the ConnectionFailureException class. |
ConnectionFailureException(String) |
Initializes a new instance of the ConnectionFailureException class with a specified error message. |
ConnectionFailureException(SerializationInfo, StreamingContext) |
Initializes a new instance of the ConnectionFailureException class with serialized data. |
ConnectionFailureException(String, Exception) |
Initializes a new instance of the ConnectionFailureException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
ConnectionFailureException()
Initializes a new instance of the ConnectionFailureException class.
public:
ConnectionFailureException();
public ConnectionFailureException ();
Public Sub New ()
Remarks
This constructor initializes the Message property of the new instance to a system-supplied message that describes the error.
The following table shows the initial property values for an instance of ConnectionFailureException.
Property | Value |
---|---|
InnerException | A null reference. |
Message | A system-supplied localized description. |
Applies to
ConnectionFailureException(String)
Initializes a new instance of the ConnectionFailureException class with a specified error message.
public:
ConnectionFailureException(System::String ^ message);
public ConnectionFailureException (string message);
new Microsoft.SqlServer.Replication.ConnectionFailureException : string -> Microsoft.SqlServer.Replication.ConnectionFailureException
Public Sub New (message As String)
Parameters
- message
- String
A message that describes the error.
Remarks
The following table shows the initial property values for an instance of ConnectionFailureException.
Property | Value |
---|---|
InnerException | A null reference (Nothing in Microsoft Visual Basic). |
Message | The error message string. |
Applies to
ConnectionFailureException(SerializationInfo, StreamingContext)
Initializes a new instance of the ConnectionFailureException class with serialized data.
protected:
ConnectionFailureException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ConnectionFailureException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Replication.ConnectionFailureException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Replication.ConnectionFailureException
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.
Remarks
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.
Applies to
ConnectionFailureException(String, Exception)
Initializes a new instance of the ConnectionFailureException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public:
ConnectionFailureException(System::String ^ message, Exception ^ innerException);
public ConnectionFailureException (string message, Exception innerException);
new Microsoft.SqlServer.Replication.ConnectionFailureException : string * Exception -> Microsoft.SqlServer.Replication.ConnectionFailureException
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.
Remarks
The following table shows the initial property values for an instance of ConnectionFailureException.
Property | Value |
---|---|
InnerException | The inner exception reference. |
Message | The error message string. |