Bearbeiten

Freigeben über


XmlReflectionImporter.ImportMembersMapping Method

Definition

Returns internal type mappings using information from a Web service method.

Overloads

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Generates internal type mappings for information from a Web service method.

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean, XmlMappingAccess)

This API supports the product infrastructure and is not intended to be used directly from your code.

Generates internal type mappings for information from a Web service method.

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Generates internal type mappings for information from a Web service method.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 System::Xml::Serialization::XmlMembersMapping ^ ImportMembersMapping(System::String ^ elementName, System::String ^ ns, cli::array <System::Xml::Serialization::XmlReflectionMember ^> ^ members, bool hasWrapperElement);
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping (string? elementName, string? ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement);
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping (string elementName, string ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement);
member this.ImportMembersMapping : string * string * System.Xml.Serialization.XmlReflectionMember[] * bool -> System.Xml.Serialization.XmlMembersMapping
Public Function ImportMembersMapping (elementName As String, ns As String, members As XmlReflectionMember(), hasWrapperElement As Boolean) As XmlMembersMapping

Parameters

elementName
String

An XML element name produced from the Web service method.

ns
String

An XML element namespace produced from the Web service method.

members
XmlReflectionMember[]

An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.

hasWrapperElement
Boolean

true if elements that correspond to Web Services Description Language (WSDL) message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.

Returns

An XmlMembersMapping with mappings to the element parts of a WSDL message definition.

Remarks

The ImportMembersMapping method is called while initializing a Web service or client, or reflecting a Web service. It is not necessary to call it directly.

The XmlReflectionMember array parameter can consist of any one of the following:

  • Web service method input parameters.

  • Web service method output parameters, plus the return type, if not void, at index 0.

  • SOAP input headers.

  • SOAP output headers.

Applies to

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 System::Xml::Serialization::XmlMembersMapping ^ ImportMembersMapping(System::String ^ elementName, System::String ^ ns, cli::array <System::Xml::Serialization::XmlReflectionMember ^> ^ members, bool hasWrapperElement, bool rpc);
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping (string? elementName, string? ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc);
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping (string elementName, string ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc);
member this.ImportMembersMapping : string * string * System.Xml.Serialization.XmlReflectionMember[] * bool * bool -> System.Xml.Serialization.XmlMembersMapping
Public Function ImportMembersMapping (elementName As String, ns As String, members As XmlReflectionMember(), hasWrapperElement As Boolean, rpc As Boolean) As XmlMembersMapping

Parameters

elementName
String

An XML element name produced from the Web service method.

ns
String

An XML element namespace produced from the Web service method.

members
XmlReflectionMember[]

An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.

hasWrapperElement
Boolean

true if elements that correspond to Web Services Description Language (WSDL) message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.

rpc
Boolean

true if the method is a remote procedure call; otherwise, false.

Returns

An XmlMembersMapping that contains the mappings.

Applies to

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 System::Xml::Serialization::XmlMembersMapping ^ ImportMembersMapping(System::String ^ elementName, System::String ^ ns, cli::array <System::Xml::Serialization::XmlReflectionMember ^> ^ members, bool hasWrapperElement, bool rpc, bool openModel);
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping (string? elementName, string? ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel);
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping (string elementName, string ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel);
member this.ImportMembersMapping : string * string * System.Xml.Serialization.XmlReflectionMember[] * bool * bool * bool -> System.Xml.Serialization.XmlMembersMapping
Public Function ImportMembersMapping (elementName As String, ns As String, members As XmlReflectionMember(), hasWrapperElement As Boolean, rpc As Boolean, openModel As Boolean) As XmlMembersMapping

Parameters

elementName
String

An XML element name produced from the Web service method.

ns
String

An XML element namespace produced from the Web service method.

members
XmlReflectionMember[]

An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.

hasWrapperElement
Boolean

true if elements that correspond to Web Services Description Language (WSDL) message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.

rpc
Boolean

true if the method is a remote procedure call; otherwise, false.

openModel
Boolean

true to specify that the generated schema type will be marked with the <xs:anyAttribute> element; otherwise, false.

Returns

An XmlMembersMapping that contains the mappings.

Applies to

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean, XmlMappingAccess)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Generates internal type mappings for information from a Web service method.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 System::Xml::Serialization::XmlMembersMapping ^ ImportMembersMapping(System::String ^ elementName, System::String ^ ns, cli::array <System::Xml::Serialization::XmlReflectionMember ^> ^ members, bool hasWrapperElement, bool rpc, bool openModel, System::Xml::Serialization::XmlMappingAccess access);
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping (string? elementName, string? ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel, System.Xml.Serialization.XmlMappingAccess access);
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping (string elementName, string ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel, System.Xml.Serialization.XmlMappingAccess access);
member this.ImportMembersMapping : string * string * System.Xml.Serialization.XmlReflectionMember[] * bool * bool * bool * System.Xml.Serialization.XmlMappingAccess -> System.Xml.Serialization.XmlMembersMapping
Public Function ImportMembersMapping (elementName As String, ns As String, members As XmlReflectionMember(), hasWrapperElement As Boolean, rpc As Boolean, openModel As Boolean, access As XmlMappingAccess) As XmlMembersMapping

Parameters

elementName
String

An XML element name produced from the Web service method.

ns
String

An XML element namespace produced from the Web service method.

members
XmlReflectionMember[]

An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.

hasWrapperElement
Boolean

true if elements that correspond to Web Services Description Language (WSDL) message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.

rpc
Boolean

true if the method is a remote procedure call; otherwise, false.

openModel
Boolean

true to specify that the generated schema type will be marked with the <xs:anyAttribute> element; otherwise, false.

access
XmlMappingAccess

One of the XmlMappingAccess values. The default is None.

Returns

An XmlMembersMapping that contains the mappings.

Applies to