Udostępnij za pośrednictwem


ConnectionLostException Constructors

Definition

Overloads

ConnectionLostException()

Creates a new instance of the ConnectionLostException class.

ConnectionLostException(String)

Creates a new instance of the ConnectionLostException class with a specified error message.

ConnectionLostException(SerializationInfo, StreamingContext)

Creates a new instance of the ConnectionLostException class with serialized data.

ConnectionLostException(String, Exception)

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

ConnectionLostException()

Creates a new instance of the ConnectionLostException class.

public ConnectionLostException ();
Public Sub New ()

Applies to

ConnectionLostException(String)

Creates a new instance of the ConnectionLostException class with a specified error message.

public ConnectionLostException (string message);
new Microsoft.Azure.Relay.ConnectionLostException : string -> Microsoft.Azure.Relay.ConnectionLostException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

ConnectionLostException(SerializationInfo, StreamingContext)

Creates a new instance of the ConnectionLostException class with serialized data.

protected ConnectionLostException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Relay.ConnectionLostException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Relay.ConnectionLostException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

ConnectionLostException(String, Exception)

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

public ConnectionLostException (string message, Exception innerException);
new Microsoft.Azure.Relay.ConnectionLostException : string * Exception -> Microsoft.Azure.Relay.ConnectionLostException
Public 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.

Applies to