InvalidDataContractException InvalidDataContractException InvalidDataContractException InvalidDataContractException Constructors

Definition

Overloads

InvalidDataContractException() InvalidDataContractException() InvalidDataContractException()

Initializes a new instance of the InvalidDataContractException class.

InvalidDataContractException(String) InvalidDataContractException(String) InvalidDataContractException(String) InvalidDataContractException(String)

Initializes a new instance of the InvalidDataContractException class with the specified error message.

InvalidDataContractException(SerializationInfo, StreamingContext) InvalidDataContractException(SerializationInfo, StreamingContext) InvalidDataContractException(SerializationInfo, StreamingContext) InvalidDataContractException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidDataContractException class with the specified SerializationInfo and StreamingContext.

InvalidDataContractException(String, Exception) InvalidDataContractException(String, Exception) InvalidDataContractException(String, Exception) InvalidDataContractException(String, Exception)

Initializes a new instance of the InvalidDataContractException class with the specified error message and inner exception.

InvalidDataContractException() InvalidDataContractException() InvalidDataContractException()

Initializes a new instance of the InvalidDataContractException class.

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

InvalidDataContractException(String) InvalidDataContractException(String) InvalidDataContractException(String) InvalidDataContractException(String)

Initializes a new instance of the InvalidDataContractException class with the specified error message.

public:
 InvalidDataContractException(System::String ^ message);
public InvalidDataContractException (string message);
new System.Runtime.Serialization.InvalidDataContractException : string -> System.Runtime.Serialization.InvalidDataContractException
Public Sub New (message As String)

Parameters

message
String String String String

A description of the error.

InvalidDataContractException(SerializationInfo, StreamingContext) InvalidDataContractException(SerializationInfo, StreamingContext) InvalidDataContractException(SerializationInfo, StreamingContext) InvalidDataContractException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidDataContractException class with the specified SerializationInfo and StreamingContext.

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

Parameters

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

A SerializationInfo that contains data needed to serialize and deserialize an object.

context
StreamingContext StreamingContext StreamingContext StreamingContext

A StreamingContext that specifies user context during serialization and deserialization.

Remarks

This constructor is used in deserialization by one of the formatters in the System.Runtime.Serialization namespace.

InvalidDataContractException(String, Exception) InvalidDataContractException(String, Exception) InvalidDataContractException(String, Exception) InvalidDataContractException(String, Exception)

Initializes a new instance of the InvalidDataContractException class with the specified error message and inner exception.

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

Parameters

message
String String String String

A description of the error.

innerException
Exception Exception Exception Exception

The original Exception.

Applies to