共用方式為


XmlSerializer.FromMappings 方法

定義

傳回指定對應的 XmlSerializer 類別執行個體。

多載

FromMappings(XmlMapping[], Type)

傳回指定對應的 XmlSerializer 類別執行個體。

FromMappings(XmlMapping[])

傳回建立自 XmlSerializer 物件陣列的 XmlTypeMapping 物件陣列。

FromMappings(XmlMapping[], Evidence)
已淘汰.

傳回 XmlSerializer 類別的執行個體,該執行個體建立自一個 XML 型別至另一個 XML 型別的對應。

FromMappings(XmlMapping[], Type)

來源:
XmlSerializer.cs
來源:
XmlSerializer.cs
來源:
XmlSerializer.cs

傳回指定對應的 XmlSerializer 類別執行個體。

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);
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 物件的陣列。

type
Type

還原序列化物件的 Type

傳回

XmlSerializer 類別的執行個體。

適用於

FromMappings(XmlMapping[])

來源:
XmlSerializer.cs
來源:
XmlSerializer.cs
來源:
XmlSerializer.cs

傳回建立自 XmlSerializer 物件陣列的 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);
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[]

XmlTypeMapping 陣列,將一個型別對應至另一個型別。

傳回

XmlSerializer 物件的陣列。

備註

當這個方法重複呼叫時,建議呼叫端快取傳回的序列化程式。

適用於

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.

傳回 XmlSerializer 類別的執行個體,該執行個體建立自一個 XML 型別至另一個 XML 型別的對應。

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

XmlMapping 物件的陣列,用於將一個型別對應至另一個型別。

evidence
Evidence

Evidence 類別的執行個體,包含顯示到 Common Language Runtime 原則系統的裝載和組件資料。

傳回

XmlSerializer 類別的執行個體。

屬性

適用於