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, string ns);

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

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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, string ns);

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

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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, string ns, bool forceUseMemberName);

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

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1