Share via


ServerDisconnectedException Constructors

Definition

Initializes a new instance of the ServerDisconnectedException class.

Overloads

ServerDisconnectedException()

Initializes a new instance of the ServerDisconnectedException class with default values.

ServerDisconnectedException(Exception)

Initializes a new instance of the ServerDisconnectedException class by using the supplied exception as the inner exception that caused the current exception.

ServerDisconnectedException(String)

Initializes a new instance of the ServerDisconnectedException class with a specified error message.

ServerDisconnectedException(SerializationInfo, StreamingContext)

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

ServerDisconnectedException(String, Exception)

Initializes a new instance of the ServerDisconnectedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

ServerDisconnectedException()

Initializes a new instance of the ServerDisconnectedException class with default values.

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

Applies to

ServerDisconnectedException(Exception)

Initializes a new instance of the ServerDisconnectedException class by using the supplied exception as the inner exception that caused the current exception.

public:
 ServerDisconnectedException(Exception ^ inner);
public ServerDisconnectedException (Exception inner);
new Microsoft.EnterpriseManagement.Common.ServerDisconnectedException : Exception -> Microsoft.EnterpriseManagement.Common.ServerDisconnectedException
Public Sub New (inner As Exception)

Parameters

inner
Exception

Type: Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Applies to

ServerDisconnectedException(String)

Initializes a new instance of the ServerDisconnectedException class with a specified error message.

public:
 ServerDisconnectedException(System::String ^ message);
public ServerDisconnectedException (string message);
new Microsoft.EnterpriseManagement.Common.ServerDisconnectedException : string -> Microsoft.EnterpriseManagement.Common.ServerDisconnectedException
Public Sub New (message As String)

Parameters

message
String

Type: String

The error message that explains the reason for the exception.

Applies to

ServerDisconnectedException(SerializationInfo, StreamingContext)

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

protected:
 ServerDisconnectedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ServerDisconnectedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EnterpriseManagement.Common.ServerDisconnectedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EnterpriseManagement.Common.ServerDisconnectedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Type: SerializationInfo

The serialized object data about the exception that is being thrown.

context
StreamingContext

Type: StreamingContext

The contextual information about the source or destination.

Applies to

ServerDisconnectedException(String, Exception)

Initializes a new instance of the ServerDisconnectedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 ServerDisconnectedException(System::String ^ message, Exception ^ inner);
public ServerDisconnectedException (string message, Exception inner);
new Microsoft.EnterpriseManagement.Common.ServerDisconnectedException : string * Exception -> Microsoft.EnterpriseManagement.Common.ServerDisconnectedException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

Type: String

The error message that explains the reason for the exception.

inner
Exception

Type: Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Applies to