SerializationInfo Constructors

Definitie

Initialiseert een nieuw exemplaar van de SerializationInfo klasse.

Overloads

Name Description
SerializationInfo(Type, IFormatterConverter)
Verouderd.

Hiermee maakt u een nieuw exemplaar van de SerializationInfo klasse.

SerializationInfo(Type, IFormatterConverter, Boolean)
Verouderd.

Initialiseert een nieuw exemplaar van de SerializationInfo klasse.

SerializationInfo(Type, IFormatterConverter)

Bron:
SerializationInfo.cs
Bron:
SerializationInfo.cs
Bron:
SerializationInfo.cs
Bron:
SerializationInfo.cs
Bron:
SerializationInfo.cs

Let op

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

Belangrijk

Deze API is niet CLS-conform.

Hiermee maakt u een nieuw exemplaar van de SerializationInfo klasse.

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)

Parameters

type
Type

Het Type object dat moet worden geserialiseerd.

converter
IFormatterConverter

De IFormatterConverter gebruikte tijdens deserialisatie.

Kenmerken

Uitzonderingen

type of converter is null.

Opmerkingen

De IFormatterConverter doorgegeven als de converter parameter converteert gegevens van de interne weergave naar het formulier dat de gebruiker heeft aangevraagd. De interne weergave van de gegevens binnen de SerializationInfo gegevens is afhankelijk van de formatter die deze heeft gemaakt.

Van toepassing op

SerializationInfo(Type, IFormatterConverter, Boolean)

Bron:
SerializationInfo.cs
Bron:
SerializationInfo.cs
Bron:
SerializationInfo.cs
Bron:
SerializationInfo.cs
Bron:
SerializationInfo.cs

Let op

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

Belangrijk

Deze API is niet CLS-conform.

Initialiseert een nieuw exemplaar van de SerializationInfo klasse.

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)

Parameters

type
Type

Het Type object dat moet worden geserialiseerd.

converter
IFormatterConverter

De IFormatterConverter gebruikte tijdens deserialisatie.

requireSameTokenInPartialTrust
Boolean

Hiermee wordt aangegeven of voor het object hetzelfde token is vereist in gedeeltelijke vertrouwensrelatie.

Kenmerken

Van toepassing op