XmlCodeExporter Class
Generates types and attribute declarations from internal type mapping information for XML schema element declarations.
Assembly: System.Xml (in System.Xml.dll)
The XmlCodeExporter type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | XmlCodeExporter(CodeNamespace) | Initializes a new instance of the XmlCodeExporter class using the specified namespace. |
![]() | XmlCodeExporter(CodeNamespace, CodeCompileUnit) | Initializes a new instance of the XmlCodeExporter class using the specified namespace and code compile unit. |
![]() | XmlCodeExporter(CodeNamespace, CodeCompileUnit, CodeGenerationOptions) | Initializes a new instance of the XmlCodeExporter class using the specified namespace, code compile unit, and code generation options. |
![]() | XmlCodeExporter(CodeNamespace, CodeCompileUnit, CodeGenerationOptions, Hashtable) | 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. |
![]() | XmlCodeExporter(CodeNamespace, CodeCompileUnit, CodeDomProvider, CodeGenerationOptions, Hashtable) | 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. |
| Name | Description | |
|---|---|---|
![]() | IncludeMetadata | Gets a collection of code attribute metadata that is included when the code is exported. (Inherited from CodeExporter.) |
| Name | Description | |
|---|---|---|
![]() | 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. |
![]() | 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. |
![]() | 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. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | ExportMembersMapping | 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 | Generates a .NET Framework type, plus attribute declarations, for an XML schema element. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (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.) |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
