Comparteix a través de


XmlSerializer.FromMappings Método

Definición

Devuelve una instancia de la clase XmlSerializer a partir de las asignaciones especificadas.

Sobrecargas

FromMappings(XmlMapping[], Type)

Devuelve una instancia de la clase XmlSerializer a partir de las asignaciones especificadas.

FromMappings(XmlMapping[])

Devuelve una matriz de objetos XmlSerializer creada a partir de una matriz de objetos XmlTypeMapping.

FromMappings(XmlMapping[], Evidence)
Obsoleto.

Devuelve una instancia de la clase XmlSerializer creada a partir de las asignaciones de un tipo de XML a otro.

FromMappings(XmlMapping[], Type)

Devuelve una instancia de la clase XmlSerializer a partir de las asignaciones especificadas.

public:
 static cli::array <System::Xml::Serialization::XmlSerializer ^> ^ FromMappings(cli::array <System::Xml::Serialization::XmlMapping ^> ^ mappings, Type ^ type);
public static System.Xml.Serialization.XmlSerializer[] FromMappings (System.Xml.Serialization.XmlMapping[]? mappings, Type? type);
public static System.Xml.Serialization.XmlSerializer[] FromMappings (System.Xml.Serialization.XmlMapping[] mappings, Type type);
static member FromMappings : System.Xml.Serialization.XmlMapping[] * Type -> System.Xml.Serialization.XmlSerializer[]
Public Shared Function FromMappings (mappings As XmlMapping(), type As Type) As XmlSerializer()

Parámetros

mappings
XmlMapping[]

Matriz de objetos XmlMapping.

type
Type

Type del objeto deserializado.

Devoluciones

XmlSerializer[]

Instancia de la clase XmlSerializer.

Se aplica a

FromMappings(XmlMapping[])

Devuelve una matriz de objetos XmlSerializer creada a partir de una matriz de objetos XmlTypeMapping.

public:
 static cli::array <System::Xml::Serialization::XmlSerializer ^> ^ FromMappings(cli::array <System::Xml::Serialization::XmlMapping ^> ^ mappings);
public static System.Xml.Serialization.XmlSerializer[] FromMappings (System.Xml.Serialization.XmlMapping[]? mappings);
public static System.Xml.Serialization.XmlSerializer[] FromMappings (System.Xml.Serialization.XmlMapping[] mappings);
static member FromMappings : System.Xml.Serialization.XmlMapping[] -> System.Xml.Serialization.XmlSerializer[]
Public Shared Function FromMappings (mappings As XmlMapping()) As XmlSerializer()

Parámetros

mappings
XmlMapping[]

Matriz de objetos XmlTypeMapping que asigna un tipo a otro.

Devoluciones

XmlSerializer[]

Matriz de objetos XmlSerializer.

Comentarios

Se recomienda que los autores de llamadas almacenen en caché el serializador devuelto cuando hay llamadas repetidas a este método.

Se aplica a

FromMappings(XmlMapping[], Evidence)

Precaución

This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of FromMappings which does not take an Evidence parameter. See http://go2.microsoft.com/fwlink/?LinkId=131738 for more information.

Devuelve una instancia de la clase XmlSerializer creada a partir de las asignaciones de un tipo de XML a otro.

public:
 static cli::array <System::Xml::Serialization::XmlSerializer ^> ^ FromMappings(cli::array <System::Xml::Serialization::XmlMapping ^> ^ mappings, System::Security::Policy::Evidence ^ evidence);
public static System.Xml.Serialization.XmlSerializer[] FromMappings (System.Xml.Serialization.XmlMapping[] mappings, System.Security.Policy.Evidence evidence);
[System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of FromMappings which does not take an Evidence parameter. See http://go2.microsoft.com/fwlink/?LinkId=131738 for more information.")]
public static System.Xml.Serialization.XmlSerializer[] FromMappings (System.Xml.Serialization.XmlMapping[] mappings, System.Security.Policy.Evidence evidence);
static member FromMappings : System.Xml.Serialization.XmlMapping[] * System.Security.Policy.Evidence -> System.Xml.Serialization.XmlSerializer[]
[<System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. Please use an overload of FromMappings which does not take an Evidence parameter. See http://go2.microsoft.com/fwlink/?LinkId=131738 for more information.")>]
static member FromMappings : System.Xml.Serialization.XmlMapping[] * System.Security.Policy.Evidence -> System.Xml.Serialization.XmlSerializer[]
Public Shared Function FromMappings (mappings As XmlMapping(), evidence As Evidence) As XmlSerializer()

Parámetros

mappings
XmlMapping[]

Matriz de objetos XmlMapping que utilizada para asignar un tipo a otro.

evidence
Evidence

Instancia de la clase Evidence que contiene los datos de host y de ensamblado presentados al sistema de directivas de Common Language Runtime.

Devoluciones

XmlSerializer[]

Instancia de la clase XmlSerializer.

Atributos

Se aplica a