SerializationInfo SerializationInfo SerializationInfo Constructors

Definición

Sobrecargas

SerializationInfo(Type, IFormatterConverter) SerializationInfo(Type, IFormatterConverter) SerializationInfo(Type, IFormatterConverter)

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

SerializationInfo(Type, IFormatterConverter, Boolean) SerializationInfo(Type, IFormatterConverter, Boolean) SerializationInfo(Type, IFormatterConverter, Boolean)

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

SerializationInfo(Type, IFormatterConverter) SerializationInfo(Type, IFormatterConverter) SerializationInfo(Type, IFormatterConverter)

Importante

Esta API no es conforme a CLS.

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

Parámetros

type
Type Type Type

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

converter
IFormatterConverter IFormatterConverter IFormatterConverter

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

Excepciones

type o converter es null.type or converter is null.

Comentarios

El IFormatterConverter pasa como el converter parámetro convierte los datos de su representación interna para el usuario solicitado el formulario.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 en el 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) SerializationInfo(Type, IFormatterConverter, Boolean) SerializationInfo(Type, IFormatterConverter, Boolean)

Importante

Esta API no es conforme a CLS.

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

Parámetros

type
Type Type Type

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

converter
IFormatterConverter IFormatterConverter IFormatterConverter

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

requireSameTokenInPartialTrust
Boolean Boolean Boolean

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

Se aplica a