XmlSerializer.FromMappings Method

Definition

지정된 매핑에 따라 XmlSerializer 클래스의 인스턴스를 반환합니다.Returns an instance of the XmlSerializer class from the specified mappings.

Overloads

FromMappings(XmlMapping[], Type)

지정된 매핑에 따라 XmlSerializer 클래스의 인스턴스를 반환합니다.Returns an instance of the XmlSerializer class from the specified mappings.

FromMappings(XmlMapping[])

XmlSerializer 개체의 배열에서 만들어진 XmlTypeMapping 개체의 배열을 반환합니다.Returns an array of XmlSerializer objects created from an array of XmlTypeMapping objects.

FromMappings(XmlMapping[], Evidence)

XML 형식 간의 매핑에 따라 생성되는 XmlSerializer 클래스의 인스턴스를 반환합니다.Returns an instance of the XmlSerializer class created from mappings of one XML type to another.

FromMappings(XmlMapping[], Type)

지정된 매핑에 따라 XmlSerializer 클래스의 인스턴스를 반환합니다.Returns an instance of the XmlSerializer class from the specified mappings.

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);
static member FromMappings : System.Xml.Serialization.XmlMapping[] * Type -> System.Xml.Serialization.XmlSerializer[]
Public Shared Function FromMappings (mappings As XmlMapping(), type As Type) As XmlSerializer()

Parameters

mappings
XmlMapping[]
XmlMapping 개체의 배열입니다.An array of XmlMapping objects.
type
Type

역직렬화된 개체의 Type입니다.The Type of the deserialized object.

Returns

XmlSerializer[]

XmlSerializer 클래스의 인스턴스입니다.An instance of the XmlSerializer class.

FromMappings(XmlMapping[])

XmlSerializer 개체의 배열에서 만들어진 XmlTypeMapping 개체의 배열을 반환합니다.Returns an array of XmlSerializer objects created from an array of XmlTypeMapping objects.

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);
static member FromMappings : System.Xml.Serialization.XmlMapping[] -> System.Xml.Serialization.XmlSerializer[]
Public Shared Function FromMappings (mappings As XmlMapping()) As XmlSerializer()

Parameters

mappings
XmlMapping[]

특정 형식을 다른 형식에 매핑하는 XmlTypeMapping의 배열입니다.An array of XmlTypeMapping that maps one type to another.

Returns

XmlSerializer[]
XmlSerializer 개체의 배열입니다.An array of XmlSerializer objects.

Remarks

호출자가이 메서드에 대 한 호출이 반복 될 때 반환 된 serializer를 캐시 하는 것이 좋습니다.It is recommended for callers to cache the returned serializer when there are repeated calls to this method.

FromMappings(XmlMapping[], Evidence)

Warning

This API is now obsolete.

XML 형식 간의 매핑에 따라 생성되는 XmlSerializer 클래스의 인스턴스를 반환합니다.Returns an instance of the XmlSerializer class created from mappings of one XML type to another.

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[]
Public Shared Function FromMappings (mappings As XmlMapping(), evidence As Evidence) As XmlSerializer()

Parameters

mappings
XmlMapping[]

특정 형식을 다른 형식에 매핑하는 데 사용되는 XmlMapping 개체의 배열입니다.An array of XmlMapping objects used to map one type to another.

evidence
Evidence

공용 언어 런타임 정책 시스템에 전달되는 호스트 및 어셈블리 데이터가 포함된 Evidence 클래스의 인스턴스입니다.An instance of the Evidence class that contains host and assembly data presented to the common language runtime policy system.

Returns

XmlSerializer[]

XmlSerializer 클래스의 인스턴스입니다.An instance of the XmlSerializer class.

Attributes

Applies to