Bagikan melalui


SerializationInfo Konstruktor

Definisi

Menginisialisasi instans baru kelas SerializationInfo.

Overload

SerializationInfo(Type, IFormatterConverter)
Kedaluwarsa.

Membuat instans SerializationInfo baru kelas .

SerializationInfo(Type, IFormatterConverter, Boolean)
Kedaluwarsa.

Menginisialisasi instans baru kelas SerializationInfo.

SerializationInfo(Type, IFormatterConverter)

Sumber:
SerializationInfo.cs
Sumber:
SerializationInfo.cs
Sumber:
SerializationInfo.cs

Perhatian

Formatter-based serialization is obsolete and should not be used.

Penting

API ini bukan kompatibel CLS.

Membuat instans SerializationInfo baru kelas .

public:
 SerializationInfo(Type ^ type, System::Runtime::Serialization::IFormatterConverter ^ converter);
[System.CLSCompliant(false)]
public SerializationInfo (Type type, System.Runtime.Serialization.IFormatterConverter converter);
[System.CLSCompliant(false)]
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public SerializationInfo (Type type, System.Runtime.Serialization.IFormatterConverter converter);
[<System.CLSCompliant(false)>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter -> System.Runtime.Serialization.SerializationInfo
[<System.CLSCompliant(false)>]
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter -> System.Runtime.Serialization.SerializationInfo
Public Sub New (type As Type, converter As IFormatterConverter)

Parameter

type
Type

Dari Type objek yang akan diserialisasikan.

converter
IFormatterConverter

yang IFormatterConverter digunakan selama deserialisasi.

Atribut

Pengecualian

type atau converter adalah null.

Keterangan

yang IFormatterConverter diteruskan sebagai converter parameter mengonversi data dari representasi internalnya ke formulir yang diminta pengguna. Representasi internal data dalam SerializationInfo tergantung pada pemformat yang membuatnya.

Berlaku untuk

SerializationInfo(Type, IFormatterConverter, Boolean)

Sumber:
SerializationInfo.cs
Sumber:
SerializationInfo.cs
Sumber:
SerializationInfo.cs

Perhatian

Formatter-based serialization is obsolete and should not be used.

Penting

API ini bukan kompatibel CLS.

Menginisialisasi instans baru kelas SerializationInfo.

public:
 SerializationInfo(Type ^ type, System::Runtime::Serialization::IFormatterConverter ^ converter, bool requireSameTokenInPartialTrust);
[System.CLSCompliant(false)]
public SerializationInfo (Type type, System.Runtime.Serialization.IFormatterConverter converter, bool requireSameTokenInPartialTrust);
[System.CLSCompliant(false)]
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public SerializationInfo (Type type, System.Runtime.Serialization.IFormatterConverter converter, bool requireSameTokenInPartialTrust);
[<System.CLSCompliant(false)>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter * bool -> System.Runtime.Serialization.SerializationInfo
[<System.CLSCompliant(false)>]
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter * bool -> System.Runtime.Serialization.SerializationInfo
Public Sub New (type As Type, converter As IFormatterConverter, requireSameTokenInPartialTrust As Boolean)

Parameter

type
Type

Dari Type objek yang akan diserialisasikan.

converter
IFormatterConverter

yang IFormatterConverter digunakan selama deserialisasi.

requireSameTokenInPartialTrust
Boolean

Menunjukkan apakah objek memerlukan token yang sama dalam kepercayaan parsial.

Atribut

Berlaku untuk