Share via


HttpWebClientProtocol.GenerateXmlMappings 方法

定義

取得指定型別所公開之每一個 XML Web Service 方法的 XmlMembersMapping

多載

GenerateXmlMappings(Type, ArrayList)

取得指定型別所公開之每個 XML Web Service 方法的 XmlMembersMapping,並將對應儲存在指定的 ArrayList 中。

GenerateXmlMappings(Type[], ArrayList)

取得指定型別所公開之每一個 XML Web Service 方法的 XmlMembersMapping,並將對應儲存在指定的 ArrayList 中,以及儲存在這個方法傳回的 Hashtable 中。

GenerateXmlMappings(Type, ArrayList)

取得指定型別所公開之每個 XML Web Service 方法的 XmlMembersMapping,並將對應儲存在指定的 ArrayList 中。

public:
 static bool GenerateXmlMappings(Type ^ type, System::Collections::ArrayList ^ mappings);
public static bool GenerateXmlMappings (Type type, System.Collections.ArrayList mappings);
static member GenerateXmlMappings : Type * System.Collections.ArrayList -> bool
Public Shared Function GenerateXmlMappings (type As Type, mappings As ArrayList) As Boolean

參數

type
Type

Type,可公開 XML Web Service 方法。

mappings
ArrayList

ArrayList用來儲存對應的 。

傳回

如果 type 可以指派至 SoapHttpClientProtocol 則為 true,否則為 false

適用於

GenerateXmlMappings(Type[], ArrayList)

取得指定型別所公開之每一個 XML Web Service 方法的 XmlMembersMapping,並將對應儲存在指定的 ArrayList 中,以及儲存在這個方法傳回的 Hashtable 中。

public:
 static System::Collections::Hashtable ^ GenerateXmlMappings(cli::array <Type ^> ^ types, System::Collections::ArrayList ^ mappings);
public static System.Collections.Hashtable GenerateXmlMappings (Type[] types, System.Collections.ArrayList mappings);
static member GenerateXmlMappings : Type[] * System.Collections.ArrayList -> System.Collections.Hashtable
Public Shared Function GenerateXmlMappings (types As Type(), mappings As ArrayList) As Hashtable

參數

types
Type[]

Type 型別的陣列,包含可公開 XML Web Service 方法的型別。

mappings
ArrayList

用於儲存對應的 ArrayList

傳回

Hashtable,包含指定型別所公開之每一個 XML Web Service 方法的 XmlMembersMappingtypes 中包含的型別會當做索引鍵使用。

適用於