XmlReflectionImporter.ImportMembersMapping 方法
定义
使用 Web 服务方法的信息返回内部类型映射。Returns internal type mappings using information from a Web service method.
重载
| ImportMembersMapping(String, String, XmlReflectionMember[], Boolean) |
此 API 支持产品基础结构,不能在代码中直接使用。 为 Web 服务方法的信息生成内部类型映射。Generates internal type mappings for information from a Web service method. |
| ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean) |
此 API 支持产品基础结构,不能在代码中直接使用。 使用 Web 服务方法的信息返回内部类型映射,并允许指定 XML 元素名称、XML 命名空间和其他选项。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) |
此 API 支持产品基础结构,不能在代码中直接使用。 使用 Web 服务方法的信息返回内部类型映射,并允许指定 XML 元素名称、XML 命名空间和其他选项。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) |
此 API 支持产品基础结构,不能在代码中直接使用。 为 Web 服务方法的信息生成内部类型映射。Generates internal type mappings for information from a Web service method. |
ImportMembersMapping(String, String, XmlReflectionMember[], Boolean)
为 Web 服务方法的信息生成内部类型映射。Generates internal type mappings for information from a Web service method.
此 API 支持产品基础结构,不能在代码中直接使用。
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
参数
- elementName
- String
从 Web 服务方法生成的 XML 元素名称。An XML element name produced from the Web service method.
- ns
- String
从 Web 服务方法生成的 XML 元素命名空间。An XML element namespace produced from the Web service method.
- members
- XmlReflectionMember[]
XmlReflectionMember 对象的数组,这些对象包含属于 Web 服务方法的 .NET Framework 代码实体。An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.
- hasWrapperElement
- Boolean
如果对应于 Web 服务描述语言 (WSDL) 消息部分的元素应包含在 SOAP 消息的额外包装元素中,则为 true;否则为 false。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.
返回
XmlMembersMapping,其中具有到 WSDL 消息定义的元素部分的映射。An XmlMembersMapping with mappings to the element parts of a WSDL message definition.
注解
ImportMembersMapping初始化 web 服务或客户端或反射 web 服务时,将调用方法。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.
XmlReflectionMember数组参数可以包含以下任一项:The XmlReflectionMember array parameter can consist of any one of the following:
Web 服务方法输入参数。Web service method input parameters.
Web 服务方法输出参数,加上索引0处的返回类型(如果不是 void)。Web service method output parameters, plus the return type, if not void, at index 0.
SOAP 输入标头。SOAP input headers.
SOAP 输出标头。SOAP output headers.
适用于
ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean)
使用 Web 服务方法的信息返回内部类型映射,并允许指定 XML 元素名称、XML 命名空间和其他选项。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.
此 API 支持产品基础结构,不能在代码中直接使用。
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
参数
- elementName
- String
从 Web 服务方法生成的 XML 元素名称。An XML element name produced from the Web service method.
- ns
- String
从 Web 服务方法生成的 XML 元素命名空间。An XML element namespace produced from the Web service method.
- members
- XmlReflectionMember[]
XmlReflectionMember 对象的数组,这些对象包含属于 Web 服务方法的 .NET Framework 代码实体。An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.
- hasWrapperElement
- Boolean
如果对应于 Web 服务描述语言 (WSDL) 消息部分的元素应包含在 SOAP 消息的额外包装元素中,则为 true;否则为 false。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;否则为 false。true if the method is a remote procedure call; otherwise, false.
返回
包含映射的 XmlMembersMapping。An XmlMembersMapping that contains the mappings.
适用于
ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean)
使用 Web 服务方法的信息返回内部类型映射,并允许指定 XML 元素名称、XML 命名空间和其他选项。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.
此 API 支持产品基础结构,不能在代码中直接使用。
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
参数
- elementName
- String
从 Web 服务方法生成的 XML 元素名称。An XML element name produced from the Web service method.
- ns
- String
从 Web 服务方法生成的 XML 元素命名空间。An XML element namespace produced from the Web service method.
- members
- XmlReflectionMember[]
XmlReflectionMember 对象的数组,这些对象包含属于 Web 服务方法的 .NET Framework 代码实体。An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.
- hasWrapperElement
- Boolean
如果对应于 Web 服务描述语言 (WSDL) 消息部分的元素应包含在 SOAP 消息的额外包装元素中,则为 true;否则为 false。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;否则为 false。true if the method is a remote procedure call; otherwise, false.
- openModel
- Boolean
如果指定生成的架构类型用 <xs:anyAttribute> 元素标记,则为 true;否则为 false。true to specify that the generated schema type will be marked with the <xs:anyAttribute> element; otherwise, false.
返回
包含映射的 XmlMembersMapping。An XmlMembersMapping that contains the mappings.
适用于
ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean, XmlMappingAccess)
为 Web 服务方法的信息生成内部类型映射。Generates internal type mappings for information from a Web service method.
此 API 支持产品基础结构,不能在代码中直接使用。
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
参数
- elementName
- String
从 Web 服务方法生成的 XML 元素名称。An XML element name produced from the Web service method.
- ns
- String
从 Web 服务方法生成的 XML 元素命名空间。An XML element namespace produced from the Web service method.
- members
- XmlReflectionMember[]
XmlReflectionMember 对象的数组,这些对象包含属于 Web 服务方法的 .NET Framework 代码实体。An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.
- hasWrapperElement
- Boolean
如果对应于 Web 服务描述语言 (WSDL) 消息部分的元素应包含在 SOAP 消息的额外包装元素中,则为 true;否则为 false。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;否则为 false。true if the method is a remote procedure call; otherwise, false.
- openModel
- Boolean
如果指定生成的架构类型用 <xs:anyAttribute> 元素标记,则为 true;否则为 false。true to specify that the generated schema type will be marked with the <xs:anyAttribute> element; otherwise, false.
- access
- XmlMappingAccess
XmlMappingAccess 值之一。One of the XmlMappingAccess values. 默认值为 None。The default is None.
返回
包含映射的 XmlMembersMapping。An XmlMembersMapping that contains the mappings.