InvalidMessageContractException Constructors
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.
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. |
Initializes a new instance of the InvalidMessageContractException class.
public:
InvalidMessageContractException();
public InvalidMessageContractException();
Public Sub New ()
Remarks
Creates a new InvalidMessageContractException object.
Applies to
.NET 10 (package-provided) e altre versioni
Prodotto | Versioni |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
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
.NET 10 (package-provided) e altre versioni
Prodotto | Versioni |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
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
.NET 10 (package-provided) e altre versioni
Prodotto | Versioni |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
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 10 (package-provided) e altre versioni
Prodotto | Versioni |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
Feedback su .NET
.NET è un progetto open source. Seleziona un collegamento per fornire feedback: