SerializationInfo Constructores

Definición

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

Sobrecargas

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)

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

Parámetros

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.

Atributos

Excepciones

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

Comentarios

Que IFormatterConverter se pasa como converter parámetro 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 de SerializationInfo depende del formateador que lo creó.The internal representation of the data within the SerializationInfo depends on the formatter that created it.

Se aplica a

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

Atributos

Se aplica a