This topic has not yet been rated - Rate this topic

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

This API supports the .NET Framework 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.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)
public XmlMembersMapping ImportMembersMapping(
	string elementName,
	string ns,
	XmlReflectionMember[] members,
	bool hasWrapperElement,
	bool rpc
)

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.

members
Type: System.Xml.Serialization.XmlReflectionMember[]

An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a 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.

Return Value

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

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.