XmlSerializer.FromMappings メソッド

定義

指定したマッピングから XmlSerializer クラスのインスタンスを返します。Returns an instance of the XmlSerializer class from the specified mappings.

オーバーロード

FromMappings(XmlMapping[], Type)

指定したマッピングから XmlSerializer クラスのインスタンスを返します。Returns an instance of the XmlSerializer class from the specified mappings.

FromMappings(XmlMapping[])

XmlTypeMapping オブジェクトの配列から作成された、XmlSerializer オブジェクトの配列を返します。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);
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()

パラメーター

mappings
XmlMapping[]

XmlMapping オブジェクトの配列。An array of XmlMapping objects.

type
Type

逆シリアル化されるオブジェクトの TypeThe Type of the deserialized object.

戻り値

XmlSerializer[]

XmlSerializer クラスのインスタンス。An instance of the XmlSerializer class.

適用対象

FromMappings(XmlMapping[])

XmlTypeMapping オブジェクトの配列から作成された、XmlSerializer オブジェクトの配列を返します。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);
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()

パラメーター

mappings
XmlMapping[]

1 つの型から別の型への割り当てを行う XmlTypeMapping の配列。An array of XmlTypeMapping that maps one type to another.

戻り値

XmlSerializer[]

XmlSerializer オブジェクトの配列。An array of XmlSerializer objects.

注釈

呼び出し元は、このメソッドを繰り返し呼び出すときに、返されたシリアライザーをキャッシュすることをお勧めします。It is recommended for callers to cache the returned serializer when there are repeated calls to this method.

適用対象

FromMappings(XmlMapping[], Evidence)

注意事項

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.

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[]
[<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()

パラメーター

mappings
XmlMapping[]

1 つの型から別の型への割り当てに使用される 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.

戻り値

XmlSerializer[]

XmlSerializer クラスのインスタンス。An instance of the XmlSerializer class.

属性

適用対象