HttpWebClientProtocol.GenerateXmlMappings 方法

定义

获取由指定类型公开的每个 XML Web services 方法的 XmlMembersMappingGets the XmlMembersMapping for each XML Web service method exposed by the specified type(s).

重载

GenerateXmlMappings(Type, ArrayList)

获取由指定类型公开的每个 XML Web services 方法的 XmlMembersMapping,然后将映射存储在指定的 ArrayList 中。Gets the XmlMembersMapping for each XML Web service method exposed by the specified type, and stores the mappings in the specified ArrayList.

GenerateXmlMappings(Type[], ArrayList)

获取由指定类型公开的每个 XML Web services 方法的 XmlMembersMapping,然后将映射存储在指定的 ArrayList 中,同时也存储在此方法返回的 Hashtable 中。Gets the XmlMembersMapping for each XML Web service method exposed by the specified types, and stores the mappings in the specified ArrayList, as well as in a Hashtable that this method returns.

GenerateXmlMappings(Type, ArrayList)

获取由指定类型公开的每个 XML Web services 方法的 XmlMembersMapping,然后将映射存储在指定的 ArrayList 中。Gets the XmlMembersMapping for each XML Web service method exposed by the specified type, and stores the mappings in the specified ArrayList.

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

参数

type
Type

公开 XML Web services 方法的 TypeThe Type that exposes the XML Web service methods.

mappingsmapping
ArrayList

用于存储映射的 ArrayListAn ArrayList that is used to store the mappings.

返回

Boolean

如果 type 可以分配给 SoapHttpClientProtocol,则为 true;否则为 falsetrue if type can be assigned to a SoapHttpClientProtocol; otherwise, false.

适用于

GenerateXmlMappings(Type[], ArrayList)

获取由指定类型公开的每个 XML Web services 方法的 XmlMembersMapping,然后将映射存储在指定的 ArrayList 中,同时也存储在此方法返回的 Hashtable 中。Gets the XmlMembersMapping for each XML Web service method exposed by the specified types, and stores the mappings in the specified ArrayList, as well as in a Hashtable that this method returns.

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

参数

types
Type[]

一个 Type 类型的数组,其中包含公开 XML Web services 方法的类型。An array of type Type that contains the types that expose the XML Web service methods.

mappingsmapping
ArrayList

用于存储映射的 ArrayListAn ArrayList that is used to store the mappings.

返回

Hashtable

一个 Hashtable,其中包含由指定类型公开的每个 XML Web services 方法的 XmlMembersMappingA Hashtable that contains the XmlMembersMapping for each XML Web service method exposed by the specified types. types 中包含的类型用作键。The types contained in types are used as keys.

适用于