Udostępnij za pośrednictwem


XmlReflectionImporter.ImportMembersMapping Method (String, String, array<XmlReflectionMember[], Boolean, Boolean, Boolean, XmlMappingAccess)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Namespace:  System.Xml.Serialization
Assembly:  System.Xml.Serialization (in System.Xml.Serialization.dll)

Syntax

'Declaration
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
public XmlMembersMapping ImportMembersMapping(
    string elementName,
    string ns,
    XmlReflectionMember[] members,
    bool hasWrapperElement,
    bool rpc,
    bool openModel,
    XmlMappingAccess access
)

Parameters

  • elementName
    Type: System.String
    An XML element name produced from the Web service method.
  • ns
    Type: System.String
    An XML element namespace produced from the Web service method.
  • hasWrapperElement
    Type: System.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
    Type: System.Boolean
    true if the method is a remote procedure call; otherwise, false.
  • openModel
    Type: System.Boolean
    true to specify that the generated schema type is marked with the <xs:anyAttribute> element; otherwise, false.

Return Value

Type: System.Xml.Serialization.XmlMembersMapping
An XmlMembersMapping that contains the mappings.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.