Compartir a través de


SerializationInfo Constructores

Definición

Inicializa una nueva instancia de la clase SerializationInfo.

Sobrecargas

SerializationInfo(Type, IFormatterConverter)
Obsoletos.

Crea una nueva instancia de la clase SerializationInfo.

SerializationInfo(Type, IFormatterConverter, Boolean)
Obsoletos.

Inicializa una nueva instancia de la clase SerializationInfo.

SerializationInfo(Type, IFormatterConverter)

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

Precaución

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

Importante

Esta API no es conforme a CLS.

Crea una nueva instancia de la clase 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)

Parámetros

type
Type

Type del objeto que se va a serializar.

converter
IFormatterConverter

IFormatterConverter que se utiliza durante la deserialización.

Atributos

Excepciones

type o converter es null.

Comentarios

El IFormatterConverter objeto pasado como converter parámetro convierte los datos de su representación interna en el formulario que solicitó el usuario. La representación interna de los datos dentro SerializationInfo de depende del formateador que lo creó.

Se aplica a

SerializationInfo(Type, IFormatterConverter, Boolean)

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

Precaución

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

Importante

Esta API no es conforme a CLS.

Inicializa una nueva instancia de la clase 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)

Parámetros

type
Type

Type del objeto que se va a serializar.

converter
IFormatterConverter

IFormatterConverter que se utiliza durante la deserialización.

requireSameTokenInPartialTrust
Boolean

Indica si el objeto requiere el mismo token en la confianza parcial.

Atributos

Se aplica a