Redigera

Dela via


CommunicationException Constructors

Definition

Initializes a new instance of the CommunicationException class.

Overloads

CommunicationException()

Initializes a new instance of the CommunicationException class.

CommunicationException(String)

Initializes a new instance of the CommunicationException class, using the specified message.

CommunicationException(SerializationInfo, StreamingContext)

Initializes a new instance of the CommunicationException class, using the specified serialization information and context objects.

CommunicationException(String, Exception)

Initializes a new instance of the CommunicationException class, using the specified message and the inner exception.

CommunicationException()

Source:
CommunicationException.cs
Source:
CommunicationException.cs

Initializes a new instance of the CommunicationException class.

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

Applies to

CommunicationException(String)

Source:
CommunicationException.cs
Source:
CommunicationException.cs

Initializes a new instance of the CommunicationException class, using the specified message.

public:
 CommunicationException(System::String ^ message);
public CommunicationException (string message);
new System.ServiceModel.CommunicationException : string -> System.ServiceModel.CommunicationException
Public Sub New (message As String)

Parameters

message
String

The description of the error condition.

Applies to

CommunicationException(SerializationInfo, StreamingContext)

Source:
CommunicationException.cs
Source:
CommunicationException.cs

Initializes a new instance of the CommunicationException class, using the specified serialization information and context objects.

protected:
 CommunicationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CommunicationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.CommunicationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.CommunicationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Information relevant to the deserialization process.

context
StreamingContext

The context of the deserialization process.

Applies to

CommunicationException(String, Exception)

Source:
CommunicationException.cs
Source:
CommunicationException.cs

Initializes a new instance of the CommunicationException class, using the specified message and the inner exception.

public:
 CommunicationException(System::String ^ message, Exception ^ innerException);
public CommunicationException (string message, Exception innerException);
new System.ServiceModel.CommunicationException : string * Exception -> System.ServiceModel.CommunicationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The description of the error condition.

innerException
Exception

The inner exception to be used.

Applies to