SerializationInfo Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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
- 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
- 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