Bagikan melalui


InvalidDataContractException Konstruktor

Definisi

Menginisialisasi instans baru kelas InvalidDataContractException.

Overload

InvalidDataContractException()

Menginisialisasi instans baru kelas InvalidDataContractException.

InvalidDataContractException(String)

Menginisialisasi instans InvalidDataContractException baru kelas dengan pesan kesalahan yang ditentukan.

InvalidDataContractException(SerializationInfo, StreamingContext)
Kedaluwarsa.

Menginisialisasi instans InvalidDataContractException baru kelas dengan yang ditentukan SerializationInfo dan StreamingContext.

InvalidDataContractException(String, Exception)

Menginisialisasi instans InvalidDataContractException baru kelas dengan pesan kesalahan dan pengecualian dalam yang ditentukan.

InvalidDataContractException()

Sumber:
InvalidDataContractException.cs
Sumber:
InvalidDataContractException.cs
Sumber:
InvalidDataContractException.cs

Menginisialisasi instans baru kelas InvalidDataContractException.

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

Berlaku untuk

InvalidDataContractException(String)

Sumber:
InvalidDataContractException.cs
Sumber:
InvalidDataContractException.cs
Sumber:
InvalidDataContractException.cs

Menginisialisasi instans InvalidDataContractException baru kelas dengan pesan kesalahan yang ditentukan.

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

Parameter

message
String

Deskripsi kesalahan.

Berlaku untuk

InvalidDataContractException(SerializationInfo, StreamingContext)

Sumber:
InvalidDataContractException.cs
Sumber:
InvalidDataContractException.cs
Sumber:
InvalidDataContractException.cs

Perhatian

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Menginisialisasi instans InvalidDataContractException baru kelas dengan yang ditentukan SerializationInfo dan 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);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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)

Parameter

info
SerializationInfo

SerializationInfo yang berisi data yang diperlukan untuk menserialisasikan dan mendeserialisasi objek.

context
StreamingContext

StreamingContext yang menentukan konteks pengguna selama serialisasi dan deserialisasi.

Atribut

Keterangan

Konstruktor ini digunakan dalam deserialisasi oleh salah satu pemformat di System.Runtime.Serialization namespace layanan.

Berlaku untuk

InvalidDataContractException(String, Exception)

Sumber:
InvalidDataContractException.cs
Sumber:
InvalidDataContractException.cs
Sumber:
InvalidDataContractException.cs

Menginisialisasi instans InvalidDataContractException baru kelas dengan pesan kesalahan dan pengecualian dalam yang ditentukan.

public:
 InvalidDataContractException(System::String ^ message, Exception ^ innerException);
public InvalidDataContractException (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)

Parameter

message
String

Deskripsi kesalahan.

innerException
Exception

Yang asli Exception.

Berlaku untuk