SoapCodeExporter::AddMappingMetadata Method (CodeAttributeDeclarationCollection^, XmlMemberMapping^, Boolean)

 

This API supports the product 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
Available since 1.1
Return to top
Show: