Bewerken

Share via


XmlCodeExporter Class

Definition

Generates types and attribute declarations from internal type mapping information for XML schema element declarations.

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

public ref class XmlCodeExporter
public ref class XmlCodeExporter : System::Xml::Serialization::CodeExporter
public class XmlCodeExporter
public class XmlCodeExporter : System.Xml.Serialization.CodeExporter
type XmlCodeExporter = class
type XmlCodeExporter = class
    inherit CodeExporter
Public Class XmlCodeExporter
Public Class XmlCodeExporter
Inherits CodeExporter
Inheritance
XmlCodeExporter
Inheritance
XmlCodeExporter

Remarks

The XmlCodeExporter class generates .NET Framework types or attribute declarations from internal mappings to .NET Framework types. These internal mappings are generated by the XmlSchemaImporter class for elements defined in an XSD document or as parts in a Web Services Description Language (WSDL) document. XmlCodeExporter is not used directly; it is used with the Web Services Description Language tool (Wsdl.exe) or the XML Schema Definition tool (Xsd.exe).

Wsdl.exe uses the types or attribute declarations that are generated by XmlCodeExporter and the internal mappings generated by the XmlSchemaImporter class to generate client proxy classes or abstract server classes from a WSDL document. Wsdl.exe uses XmlCodeExporter and the ServiceDescriptionImporter class 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.

  • Non-SOAP implementations of Web services using the HTTP-GET and HTTP-POST operations.

  • Xsd.exe uses XmlCodeExporter to generate classes from XML Schema Definition (XSD) documents.

Constructors

XmlCodeExporter(CodeNamespace)

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

Initializes a new instance of the XmlCodeExporter class using the specified namespace.

XmlCodeExporter(CodeNamespace, CodeCompileUnit)

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

Initializes a new instance of the XmlCodeExporter class using the specified namespace and code compile unit.

XmlCodeExporter(CodeNamespace, CodeCompileUnit, CodeDomProvider, CodeGenerationOptions, Hashtable)

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

Initializes a new instance of the XmlCodeExporter class using the specified .NET Framework namespace, code compile unit containing the graph of the objects, an enumeration specifying code options, and a collection of mapping objects.

XmlCodeExporter(CodeNamespace, CodeCompileUnit, CodeGenerationOptions)

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

Initializes a new instance of the XmlCodeExporter class using the specified namespace, code compile unit, and code generation options.

XmlCodeExporter(CodeNamespace, CodeCompileUnit, CodeGenerationOptions, Hashtable)

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

Initializes a new instance of the XmlCodeExporter class using the specified .NET Framework namespace, code compile unit containing the graph of the objects, an object representing code generation options, and a collection of mapping objects.

Properties

IncludeMetadata

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

IncludeMetadata

Gets a collection of code attribute metadata that is included when the code is exported.

(Inherited from CodeExporter)

Methods

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExportMembersMapping(XmlMembersMapping)

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

Generates a .NET Framework type, plus attribute declarations, for each of the parts that belong to a SOAP message definition in a Web Services Description Language (WSDL) document.

ExportTypeMapping(XmlTypeMapping)

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

Generates a .NET Framework type, plus attribute declarations, for an XML schema element.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also