Leggi in inglese Modifica

Condividi tramite


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()

Source:
InvalidMessageContractException.cs
Source:
InvalidMessageContractException.cs

Initializes a new instance of the InvalidMessageContractException class.

C#
public InvalidMessageContractException();

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

InvalidMessageContractException(String)

Source:
InvalidMessageContractException.cs
Source:
InvalidMessageContractException.cs

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

C#
public InvalidMessageContractException(string message);

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

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.

C#
protected InvalidMessageContractException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

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)

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.

C#
public InvalidMessageContractException(string message, Exception innerException);

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