InvalidMessageContractException 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.
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()
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)
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)
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)
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
.NET