Język

SerializationInfo Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy SerializationInfo.

Przeciążenia

Nazwa Opis
SerializationInfo(Type, IFormatterConverter)
Przestarzałe.

Tworzy nowe wystąpienie SerializationInfo klasy.

SerializationInfo(Type, IFormatterConverter, Boolean)
Przestarzałe.

Inicjuje nowe wystąpienie klasy SerializationInfo.

SerializationInfo(Type, IFormatterConverter)

Źródło:
SerializationInfo.cs
Źródło:
SerializationInfo.cs
Źródło:
SerializationInfo.cs
Źródło:
SerializationInfo.cs
Źródło:
SerializationInfo.cs

Uwaga

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

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Tworzy nowe wystąpienie SerializationInfo klasy.

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)]
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}")>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter -> System.Runtime.Serialization.SerializationInfo
[<System.CLSCompliant(false)>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter -> System.Runtime.Serialization.SerializationInfo
Public Sub New (type As Type, converter As IFormatterConverter)

Parametry

type
Type

Obiekt Type do serializacji.

converter
IFormatterConverter

Element IFormatterConverter używany podczas deserializacji.

Atrybuty

Wyjątki

type lub converter ma wartość null.

Uwagi

Przekazany IFormatterConverter jako converter parametr konwertuje dane z wewnętrznej reprezentacji na formularz, którego zażądał użytkownik. Wewnętrzna reprezentacja danych w obiekcie SerializationInfo zależy od obiektu formatującego, który go utworzył.

Dotyczy

SerializationInfo(Type, IFormatterConverter, Boolean)

Źródło:
SerializationInfo.cs
Źródło:
SerializationInfo.cs
Źródło:
SerializationInfo.cs
Źródło:
SerializationInfo.cs
Źródło:
SerializationInfo.cs

Uwaga

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

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Inicjuje nowe wystąpienie klasy SerializationInfo.

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)]
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}")>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter * bool -> System.Runtime.Serialization.SerializationInfo
[<System.CLSCompliant(false)>]
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)

Parametry

type
Type

Obiekt Type do serializacji.

converter
IFormatterConverter

Element IFormatterConverter używany podczas deserializacji.

requireSameTokenInPartialTrust
Boolean

Wskazuje, czy obiekt wymaga tego samego tokenu w częściowym zaufaniu.

Atrybuty

Dotyczy