Export (0) Print
Expand All

SoapCodeExporter.AddMappingMetadata Method (CodeAttributeDeclarationCollection, XmlMemberMapping, Boolean)

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

Adds a SoapElementAttribute declaration to a method parameter or return value that corresponds to a part element of a SOAP message definition in a WSDL document.

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

public void AddMappingMetadata(
	CodeAttributeDeclarationCollection metadata,
	XmlMemberMapping member,
	bool forceUseMemberName
)

Parameters

metadata
Type: System.CodeDom.CodeAttributeDeclarationCollection
The collection of CodeAttributeDeclaration objects for the generated type to which the method adds an attribute declaration.
member
Type: System.Xml.Serialization.XmlMemberMapping
An internal .NET Framework type mapping for a single part of a WSDL message definition.
forceUseMemberName
Type: System.Boolean
true to add an initial argument that contains the XML element name for the attribute declaration that is being generated; otherwise, false.

This method is used by the Wsdl.exe tool when a WSDL document specifies SOAP encoding, as described in Section 5 of the SOAP 1.1 specification.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2014 Microsoft