Modifica

Condividi tramite


InvalidMessageContractException Constructors

Definition

Initializes a new instance of the InvalidMessageContractException class.

Overloads

InvalidMessageContractException()

Initializes a new instance of the InvalidMessageContractException class.

InvalidMessageContractException(String)

Initializes a new instance of the InvalidMessageContractException class using the specified message.

InvalidMessageContractException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidMessageContractException class when deserializing from a stream into an object.

InvalidMessageContractException(String, Exception)

Initializes a new instance of the InvalidMessageContractException class that uses the specified message and inner exception.

InvalidMessageContractException()

Source:
InvalidMessageContractException.cs
Source:
InvalidMessageContractException.cs

Initializes a new instance of the InvalidMessageContractException class.

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

Remarks

Creates a new InvalidMessageContractException object.

Applies to

InvalidMessageContractException(String)

Source:
InvalidMessageContractException.cs
Source:
InvalidMessageContractException.cs

Initializes a new instance of the InvalidMessageContractException class using the specified message.

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

Parameters

message
String

The message for the exception.

Remarks

Creates a new InvalidMessageContractException object using the message.

Applies to

InvalidMessageContractException(SerializationInfo, StreamingContext)

Source:
InvalidMessageContractException.cs
Source:
InvalidMessageContractException.cs

Initializes a new instance of the InvalidMessageContractException class when deserializing from a stream into an object.

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

Parameters

info
SerializationInfo

The serialization information.

context
StreamingContext

The stream from which to deserialize.

Remarks

Creates a new InvalidMessageContractException object from the stream on deserialization.

Applies to

InvalidMessageContractException(String, Exception)

Source:
InvalidMessageContractException.cs
Source:
InvalidMessageContractException.cs

Initializes a new instance of the InvalidMessageContractException class that uses the specified message and inner exception.

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

Parameters

message
String

The exception message.

innerException
Exception

The inner exception.

Remarks

Creates a new InvalidMessageContractException object from the message and innerException.

Applies to