XmlCodeExporter Class
TOC
Collapse the table of content
Expand the table of content

XmlCodeExporter Class

 
Use BaseTrue

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

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

Namespace:   System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

System.Object
  System.Xml.Serialization.CodeExporter
    System.Xml.Serialization.XmlCodeExporter

public class XmlCodeExporter : CodeExporter

NameDescription
System_CAPS_pubmethodXmlCodeExporter(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.

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

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

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

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

NameDescription
System_CAPS_pubpropertyIncludeMetadata

Gets a collection of code attribute metadata that is included when the code is exported.(Inherited from CodeExporter.)

NameDescription
System_CAPS_pubmethodAddMappingMetadata(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.

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

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

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

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

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft