SerializationInfo Constructeurs

Définition

Initialise une nouvelle instance de la classe SerializationInfo.

Surcharges

SerializationInfo(Type, IFormatterConverter)
Obsolète.

Crée une instance de la classe SerializationInfo.

SerializationInfo(Type, IFormatterConverter, Boolean)
Obsolète.

Initialise une nouvelle instance de la classe SerializationInfo.

SerializationInfo(Type, IFormatterConverter)

Source:
SerializationInfo.cs
Source:
SerializationInfo.cs
Source:
SerializationInfo.cs

Attention

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

Important

Cette API n’est pas conforme CLS.

Crée une instance de la classe SerializationInfo.

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)

Paramètres

type
Type

Type de l'objet à sérialiser.

converter
IFormatterConverter

IFormatterConverter utilisé pendant la désérialisation.

Attributs

Exceptions

type ou converter est null.

Remarques

Passé IFormatterConverter en tant que converter paramètre convertit les données de sa représentation interne vers le formulaire demandé par l’utilisateur. La représentation interne des données dans le SerializationInfo dépend du formateur qui les a créées.

S’applique à

SerializationInfo(Type, IFormatterConverter, Boolean)

Source:
SerializationInfo.cs
Source:
SerializationInfo.cs
Source:
SerializationInfo.cs

Attention

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

Important

Cette API n’est pas conforme CLS.

Initialise une nouvelle instance de la classe 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)

Paramètres

type
Type

Type de l'objet à sérialiser.

converter
IFormatterConverter

IFormatterConverter utilisé pendant la désérialisation.

requireSameTokenInPartialTrust
Boolean

Indique si l'objet requiert le même jeton avec une confiance partielle.

Attributs

S’applique à