SerializationInfo Constructors

Definition

Inicializa una nueva instancia de la clase SerializationInfo.Initializes a new instance of the SerializationInfo class.

Overloads

SerializationInfo(Type, IFormatterConverter)

Crea una nueva instancia de la clase SerializationInfo.Creates a new instance of the SerializationInfo class.

SerializationInfo(Type, IFormatterConverter, Boolean)

Inicializa una nueva instancia de la clase SerializationInfo.Initializes a new instance of the SerializationInfo class.

SerializationInfo(Type, IFormatterConverter)

Important

This API is not CLS-compliant.

Crea una nueva instancia de la clase SerializationInfo.Creates a new instance of the SerializationInfo class.

public:
 SerializationInfo(Type ^ type, System::Runtime::Serialization::IFormatterConverter ^ converter);
[System.CLSCompliant(false)]
public SerializationInfo (Type type, System.Runtime.Serialization.IFormatterConverter converter);
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

Type del objeto que se va a serializar.The Type of the object to serialize.

converter
IFormatterConverter

IFormatterConverter que se utiliza durante la deserialización.The IFormatterConverter used during deserialization.

Attributes

Exceptions

El valor de type o converter es null.type or converter is null.

Remarks

La IFormatterConverter pasada como parámetro converter convierte los datos de su representación interna al formulario solicitado por el usuario.The IFormatterConverter passed as the converter parameter converts data from its internal representation to the form the user requested. La representación interna de los datos dentro del SerializationInfo depende del formateador que lo creó.The internal representation of the data within the SerializationInfo depends on the formatter that created it.

SerializationInfo(Type, IFormatterConverter, Boolean)

Important

This API is not CLS-compliant.

Inicializa una nueva instancia de la clase SerializationInfo.Initializes a new instance of the SerializationInfo class.

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);
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

Type del objeto que se va a serializar.The Type of the object to serialize.

converter
IFormatterConverter

IFormatterConverter que se utiliza durante la deserialización.The IFormatterConverter used during deserialization.

requireSameTokenInPartialTrust
Boolean

Indica si el objeto requiere el mismo token en la confianza parcial.Indicates whether the object requires same token in partial trust.

Attributes

Applies to