Edit

Bagikan melalui


SoapCodeExporter.AddMappingMetadata Method

Definition

Add 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.

Overloads

AddMappingMetadata(CodeAttributeDeclarationCollection, XmlMemberMapping)

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

Add a SoapElementAttribute declaration to a method parameter or return value corresponding to a part element of a SOAP message definition in a WSDL document.

AddMappingMetadata(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.

AddMappingMetadata(CodeAttributeDeclarationCollection, XmlMemberMapping)

Add a SoapElementAttribute declaration to a method parameter or return value corresponding to a part element of a SOAP message definition in a WSDL document.

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

public:
 void AddMappingMetadata(System::CodeDom::CodeAttributeDeclarationCollection ^ metadata, System::Xml::Serialization::XmlMemberMapping ^ member);
public void AddMappingMetadata (System.CodeDom.CodeAttributeDeclarationCollection metadata, System.Xml.Serialization.XmlMemberMapping member);
member this.AddMappingMetadata : System.CodeDom.CodeAttributeDeclarationCollection * System.Xml.Serialization.XmlMemberMapping -> unit
Public Sub AddMappingMetadata (metadata As CodeAttributeDeclarationCollection, member As XmlMemberMapping)

Parameters

metadata
CodeAttributeDeclarationCollection

The collection of CodeAttributeDeclaration objects for the generated type, to which the method adds an attribute declaration.

member
XmlMemberMapping

An internal .NET Framework type mapping for a single part of a WSDL message definition.

Remarks

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.

Applies to

AddMappingMetadata(CodeAttributeDeclarationCollection, XmlMemberMapping, Boolean)

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.

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

public:
 void AddMappingMetadata(System::CodeDom::CodeAttributeDeclarationCollection ^ metadata, System::Xml::Serialization::XmlMemberMapping ^ member, bool forceUseMemberName);
public void AddMappingMetadata (System.CodeDom.CodeAttributeDeclarationCollection metadata, System.Xml.Serialization.XmlMemberMapping member, bool forceUseMemberName);
member this.AddMappingMetadata : System.CodeDom.CodeAttributeDeclarationCollection * System.Xml.Serialization.XmlMemberMapping * bool -> unit
Public Sub AddMappingMetadata (metadata As CodeAttributeDeclarationCollection, member As XmlMemberMapping, forceUseMemberName As Boolean)

Parameters

metadata
CodeAttributeDeclarationCollection

The collection of CodeAttributeDeclaration objects for the generated type to which the method adds an attribute declaration.

member
XmlMemberMapping

An internal .NET Framework type mapping for a single part of a WSDL message definition.

forceUseMemberName
Boolean

true to add an initial argument that contains the XML element name for the attribute declaration that is being generated; otherwise, false.

Remarks

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.

Applies to