編集

次の方法で共有


XmlCodeExporter.AddMappingMetadata Method

Definition

Adds an XmlElementAttribute declaration to a method parameter or return value that corresponds to a <part> element of a SOAP message definition in a Web Services Description Language (WSDL) document.

Overloads

AddMappingMetadata(CodeAttributeDeclarationCollection, XmlMemberMapping, String)

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

Adds an XmlElementAttribute declaration to a method parameter or return value that corresponds to a <part> element of a SOAP message definition in a Web Services Description Language (WSDL) document.

AddMappingMetadata(CodeAttributeDeclarationCollection, XmlTypeMapping, String)

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

Adds an XmlElementAttribute declaration to a method return value that corresponds to a <part> element of a non-SOAP message definition in a Web Services Description Language (WSDL) document.

AddMappingMetadata(CodeAttributeDeclarationCollection, XmlMemberMapping, String, Boolean)

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

Adds an XmlElementAttribute declaration to a method parameter or return value that corresponds to a <part> element of a SOAP message definition in a Web Services Description Language (WSDL) document.

AddMappingMetadata(CodeAttributeDeclarationCollection, XmlMemberMapping, String)

Adds an XmlElementAttribute declaration to a method parameter or return value that corresponds to a <part> element of a SOAP message definition in a Web Services Description Language (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, System::String ^ ns);
public void AddMappingMetadata (System.CodeDom.CodeAttributeDeclarationCollection metadata, System.Xml.Serialization.XmlMemberMapping member, string ns);
member this.AddMappingMetadata : System.CodeDom.CodeAttributeDeclarationCollection * System.Xml.Serialization.XmlMemberMapping * string -> unit
Public Sub AddMappingMetadata (metadata As CodeAttributeDeclarationCollection, member As XmlMemberMapping, ns As String)

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 element part of a WSDL message definition.

ns
String

The XML namespace of the SOAP message part for which the type mapping information in the member parameter has been generated.

Remarks

This method is used by the Web Services Description Language tool (Wsdl.exe) when a WSDL document specifies literal use, indicating that the contents of SOAP message parameters and return values (or request and response documents) are literally specified with XML schema definitions.

Applies to

AddMappingMetadata(CodeAttributeDeclarationCollection, XmlTypeMapping, String)

Adds an XmlElementAttribute declaration to a method return value that corresponds to a <part> element of a non-SOAP message definition in a Web Services Description Language (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::XmlTypeMapping ^ mapping, System::String ^ ns);
public void AddMappingMetadata (System.CodeDom.CodeAttributeDeclarationCollection metadata, System.Xml.Serialization.XmlTypeMapping mapping, string ns);
member this.AddMappingMetadata : System.CodeDom.CodeAttributeDeclarationCollection * System.Xml.Serialization.XmlTypeMapping * string -> unit
Public Sub AddMappingMetadata (metadata As CodeAttributeDeclarationCollection, mapping As XmlTypeMapping, ns As String)

Parameters

metadata
CodeAttributeDeclarationCollection

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

mapping
XmlTypeMapping

The internal .NET Framework type mapping information for an XML schema element.

ns
String

The XML namespace of the SOAP message part for which the type mapping information in the member parameter has been generated.

Remarks

The Web Services Description Language tool (Wsdl.exe) uses this method when a WSDL document specifies the .NET Framework's non-SOAP implementations of Web services using the HTTP-GET and HTTP-POST operations.

Applies to

AddMappingMetadata(CodeAttributeDeclarationCollection, XmlMemberMapping, String, Boolean)

Adds an XmlElementAttribute declaration to a method parameter or return value that corresponds to a <part> element of a SOAP message definition in a Web Services Description Language (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, System::String ^ ns, bool forceUseMemberName);
public void AddMappingMetadata (System.CodeDom.CodeAttributeDeclarationCollection metadata, System.Xml.Serialization.XmlMemberMapping member, string ns, bool forceUseMemberName);
member this.AddMappingMetadata : System.CodeDom.CodeAttributeDeclarationCollection * System.Xml.Serialization.XmlMemberMapping * string * bool -> unit
Public Sub AddMappingMetadata (metadata As CodeAttributeDeclarationCollection, member As XmlMemberMapping, ns As String, 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 element part of a WSDL message definition.

ns
String

The XML namespace of the SOAP message part for which the type mapping information in the member parameter has been generated.

forceUseMemberName
Boolean

Flag that helps determine whether to add an initial argument containing the XML element name for the attribute declaration being generated.

Remarks

The Web Services Description Language tool (Wsdl.exe) uses this method when a WSDL document specifies literal use, indicating that the contents of SOAP message parameters and return values (or request and response documents) are literally specified with XML schema definitions.

Applies to