<?xml version="1.0" encoding="utf-8"?> <Type Name="XmlCodeExporter" FullName="System.Xml.Serialization.XmlCodeExporter"> <TypeSignature Maintainer="auto" Language="C#" Value="public class XmlCodeExporter : System.Xml.Serialization.CodeExporter" /> <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit XmlCodeExporter extends System.Xml.Serialization.CodeExporter" /> <AssemblyInfo> <AssemblyName>System.Xml</AssemblyName> <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ThreadSafetyStatement>To be added</ThreadSafetyStatement> <Base> <BaseTypeName>System.Xml.Serialization.CodeExporter</BaseTypeName> </Base> <Interfaces /> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>The <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> class generates .NET Framework types or attribute declarations from internal mappings to .NET Framework types. These internal mappings are generated by the <see cref="T:System.Xml.Serialization.XmlSchemaImporter" /> class for elements defined in an XSD document or as parts in a Web Services Description Language (WSDL) document. <see cref="T:System.Xml.Serialization.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).</para> <para>Wsdl.exe uses the types or attribute declarations that are generated by <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> and the internal mappings generated by the <see cref="T:System.Xml.Serialization.XmlSchemaImporter" /> class to generate client proxy classes or abstract server classes from a WSDL document. Wsdl.exe uses <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> and the <see cref="T:System.Web.Services.Description.ServiceDescriptionImporter" /> class when a WSDL document specifies: </para> <list type="bullet"> <item> <para>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.</para> </item> <item> <para>Non-SOAP implementations of Web services using the HTTP-GET and HTTP-POST operations.</para> </item> <item> <para>Xsd.exe uses <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> to generate classes from XML Schema Definition (XSD) documents.</para> </item> </list> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Generates types and attribute declarations from internal type mapping information for XML schema element declarations.</para> </summary> </Docs> <Members> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public XmlCodeExporter (System.CodeDom.CodeNamespace codeNamespace);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.CodeDom.CodeNamespace codeNamespace) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="codeNamespace" Type="System.CodeDom.CodeNamespace" /> </Parameters> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Instead of creating an instance of the <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> class directly, use the Web Services Description Language tool (Wsdl.exe) or the XML Schema Definition tool (Xsd.exe).</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> class using the specified namespace. </para> </summary> <param name="codeNamespace"> <attribution license="cc4" from="Microsoft" modified="false" />The namespace of the types to generate.</param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public XmlCodeExporter (System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit codeCompileUnit);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.CodeDom.CodeNamespace codeNamespace, class System.CodeDom.CodeCompileUnit codeCompileUnit) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue /> <Parameters> <Parameter Name="codeNamespace" Type="System.CodeDom.CodeNamespace" /> <Parameter Name="codeCompileUnit" Type="System.CodeDom.CodeCompileUnit" /> </Parameters> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Instead of creating an instance of the <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> class directly, use the Web Services Description Language tool (Wsdl.exe) or the XML Schema Definition tool (Xsd.exe).</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> class using the specified namespace and code compile unit.</para> </summary> <param name="codeNamespace"> <attribution license="cc4" from="Microsoft" modified="false" />The namespace of the types to generate.</param> <param name="codeCompileUnit"> <attribution license="cc4" from="Microsoft" modified="false" />A CodeDOM graph container to which used assembly references are automatically added.</param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public XmlCodeExporter (System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit codeCompileUnit, System.Xml.Serialization.CodeGenerationOptions options);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.CodeDom.CodeNamespace codeNamespace, class System.CodeDom.CodeCompileUnit codeCompileUnit, valuetype System.Xml.Serialization.CodeGenerationOptions options) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <Parameters> <Parameter Name="codeNamespace" Type="System.CodeDom.CodeNamespace" /> <Parameter Name="codeCompileUnit" Type="System.CodeDom.CodeCompileUnit" /> <Parameter Name="options" Type="System.Xml.Serialization.CodeGenerationOptions" /> </Parameters> <Docs> <since version=".NET 2.0" /> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Instead of creating an instance of the <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> class directly, use the Web Services Description Language tool (Wsdl.exe) or the XML Schema Definition tool (Xsd.exe).</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.Xml.Serialization.XmlCodeExporter" /> class using the specified namespace, code compile unit, and code generation options.</para> </summary> <param name="codeNamespace"> <attribution license="cc4" from="Microsoft" modified="false" />The namespace of the types to generate.</param> <param name="codeCompileUnit"> <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.CodeDom.CodeCompileUnit" /> program graph container to which used assembly references are automatically added.</param> <param name="options"> <attribution license="cc4" from="Microsoft" modified="false" />An enumeration value that provides options for generating .NET Framework types from XML schema custom data types.</param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public XmlCodeExporter (System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit codeCompileUnit, System.Xml.Serialization.CodeGenerationOptions options, System.Collections.Hashtable mappings);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.CodeDom.CodeNamespace codeNamespace, class System.CodeDom.CodeCompileUnit codeCompileUnit, valuetype System.Xml.Serialization.CodeGenerationOptions options, class System.Collections.Hashtable mappings) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <Parameters> <Parameter Name="codeNamespace" Type="System.CodeDom.CodeNamespace" /> <Parameter Name="codeCompileUnit" Type="System.CodeDom.CodeCompileUnit" /> <Parameter Name="options" Type="System.Xml.Serialization.CodeGenerationOptions" /> <Parameter Name="mappings" Type="System.Collections.Hashtable" /> </Parameters> <Docs> <remarks>To be added.</remarks> <since version=".NET 2.0" /> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.Xml.Serialization.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.</para> </summary> <param name="codeNamespace"> <attribution license="cc4" from="Microsoft" modified="false" />The namespace of the types to generate.</param> <param name="codeCompileUnit"> <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.CodeDom.CodeCompileUnit" /> program graph container to which used assembly references are automatically added.</param> <param name="options"> <attribution license="cc4" from="Microsoft" modified="false" />An enumeration value that provides options for generating .NET Framework types from XML schema custom data types.</param> <param name="mappings"> <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Collections.Hashtable" /> that contains <see cref="T:System.Xml.Serialization.XmlMapping" /> objects.</param> </Docs> </Member> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public XmlCodeExporter (System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit codeCompileUnit, System.CodeDom.Compiler.CodeDomProvider codeProvider, System.Xml.Serialization.CodeGenerationOptions options, System.Collections.Hashtable mappings);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.CodeDom.CodeNamespace codeNamespace, class System.CodeDom.CodeCompileUnit codeCompileUnit, class System.CodeDom.Compiler.CodeDomProvider codeProvider, valuetype System.Xml.Serialization.CodeGenerationOptions options, class System.Collections.Hashtable mappings) cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <Parameters> <Parameter Name="codeNamespace" Type="System.CodeDom.CodeNamespace" /> <Parameter Name="codeCompileUnit" Type="System.CodeDom.CodeCompileUnit" /> <Parameter Name="codeProvider" Type="System.CodeDom.Compiler.CodeDomProvider" /> <Parameter Name="options" Type="System.Xml.Serialization.CodeGenerationOptions" /> <Parameter Name="mappings" Type="System.Collections.Hashtable" /> </Parameters> <Docs> <remarks>To be added.</remarks> <since version=".NET 2.0" /> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Initializes a new instance of the <see cref="T:System.Xml.Serialization.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.</para> </summary> <param name="codeNamespace"> <attribution license="cc4" from="Microsoft" modified="false" />The namespace of the types to generate.</param> <param name="codeCompileUnit"> <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.CodeDom.CodeCompileUnit" /> program graph container to which used assembly references are automatically added.</param> <param name="codeProvider"> <attribution license="cc4" from="Microsoft" modified="false" />An enumeration value that provides options for generating .NET Framework types from XML schema custom data types.</param> <param name="options"> <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Xml.Serialization.CodeGenerationOptions" /> that contains special instructions for code creation.</param> <param name="mappings"> <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Collections.Hashtable" /> that contains <see cref="T:System.Xml.Serialization.XmlMapping" /> objects.</param> </Docs> </Member> <Member MemberName="AddMappingMetadata"> <MemberSignature Language="C#" Value="public void AddMappingMetadata (System.CodeDom.CodeAttributeDeclarationCollection metadata, System.Xml.Serialization.XmlMemberMapping member, string ns);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AddMappingMetadata(class System.CodeDom.CodeAttributeDeclarationCollection metadata, class System.Xml.Serialization.XmlMemberMapping member, string ns) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>System.Void</ReturnType> </ReturnValue> <Parameters> <Parameter Name="metadata" Type="System.CodeDom.CodeAttributeDeclarationCollection" /> <Parameter Name="member" Type="System.Xml.Serialization.XmlMemberMapping" /> <Parameter Name="ns" Type="System.String" /> </Parameters> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>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.</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Adds an <see cref="T:System.Xml.Serialization.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. </para> </summary> <param name="metadata"> <attribution license="cc4" from="Microsoft" modified="false" />The collection of <see cref="T:System.CodeDom.CodeAttributeDeclaration" /> objects for the generated type to which the method adds an attribute declaration.</param> <param name="member"> <attribution license="cc4" from="Microsoft" modified="false" />An internal .NET Framework type mapping for a single element part of a WSDL message definition.</param> <param name="ns"> <attribution license="cc4" from="Microsoft" modified="false" />The XML namespace of the SOAP message part for which the type mapping information in the member parameter has been generated.</param> </Docs> </Member> <Member MemberName="AddMappingMetadata"> <MemberSignature Language="C#" Value="public void AddMappingMetadata (System.CodeDom.CodeAttributeDeclarationCollection metadata, System.Xml.Serialization.XmlTypeMapping mapping, string ns);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AddMappingMetadata(class System.CodeDom.CodeAttributeDeclarationCollection metadata, class System.Xml.Serialization.XmlTypeMapping mapping, string ns) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>System.Void</ReturnType> </ReturnValue> <Parameters> <Parameter Name="metadata" Type="System.CodeDom.CodeAttributeDeclarationCollection" /> <Parameter Name="mapping" Type="System.Xml.Serialization.XmlTypeMapping" /> <Parameter Name="ns" Type="System.String" /> </Parameters> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>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.</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Adds an <see cref="T:System.Xml.Serialization.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. </para> </summary> <param name="metadata"> <attribution license="cc4" from="Microsoft" modified="false" />The collection of <see cref="T:System.CodeDom.CodeAttributeDeclaration" /> objects for the generated type to which the method adds an attribute declaration.</param> <param name="mapping"> <attribution license="cc4" from="Microsoft" modified="false" />The internal .NET Framework type mapping information for an XML schema element.</param> <param name="ns"> <attribution license="cc4" from="Microsoft" modified="false" />The XML namespace of the SOAP message part for which the type mapping information in the member parameter has been generated.</param> </Docs> </Member> <Member MemberName="AddMappingMetadata"> <MemberSignature Language="C#" Value="public void AddMappingMetadata (System.CodeDom.CodeAttributeDeclarationCollection metadata, System.Xml.Serialization.XmlMemberMapping member, string ns, bool forceUseMemberName);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AddMappingMetadata(class System.CodeDom.CodeAttributeDeclarationCollection metadata, class System.Xml.Serialization.XmlMemberMapping member, string ns, bool forceUseMemberName) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>System.Void</ReturnType> </ReturnValue> <Parameters> <Parameter Name="metadata" Type="System.CodeDom.CodeAttributeDeclarationCollection" /> <Parameter Name="member" Type="System.Xml.Serialization.XmlMemberMapping" /> <Parameter Name="ns" Type="System.String" /> <Parameter Name="forceUseMemberName" Type="System.Boolean" /> </Parameters> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>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.</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Adds an <see cref="T:System.Xml.Serialization.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. </para> </summary> <param name="metadata"> <attribution license="cc4" from="Microsoft" modified="false" />The collection of <see cref="T:System.CodeDom.CodeAttributeDeclaration" /> objects for the generated type to which the method adds an attribute declaration.</param> <param name="member"> <attribution license="cc4" from="Microsoft" modified="false" />An internal .NET Framework type mapping for a single element part of a WSDL message definition.</param> <param name="ns"> <attribution license="cc4" from="Microsoft" modified="false" />The XML namespace of the SOAP message part for which the type mapping information in the member parameter has been generated.</param> <param name="forceUseMemberName"> <attribution license="cc4" from="Microsoft" modified="false" />Flag that helps determine whether to add an initial argument containing the XML element name for the attribute declaration being generated.</param> </Docs> </Member> <Member MemberName="ExportMembersMapping"> <MemberSignature Language="C#" Value="public void ExportMembersMapping (System.Xml.Serialization.XmlMembersMapping xmlMembersMapping);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ExportMembersMapping(class System.Xml.Serialization.XmlMembersMapping xmlMembersMapping) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>System.Void</ReturnType> </ReturnValue> <Parameters> <Parameter Name="xmlMembersMapping" Type="System.Xml.Serialization.XmlMembersMapping" /> </Parameters> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>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.</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>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. </para> </summary> <param name="xmlMembersMapping"> <attribution license="cc4" from="Microsoft" modified="false" />The internal .NET Framework type mappings for the element parts of a WSDL message definition.</param> </Docs> </Member> <Member MemberName="ExportTypeMapping"> <MemberSignature Language="C#" Value="public void ExportTypeMapping (System.Xml.Serialization.XmlTypeMapping xmlTypeMapping);" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ExportTypeMapping(class System.Xml.Serialization.XmlTypeMapping xmlTypeMapping) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>System.Void</ReturnType> </ReturnValue> <Parameters> <Parameter Name="xmlTypeMapping" Type="System.Xml.Serialization.XmlTypeMapping" /> </Parameters> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>The Web Services Description Language tool (Wsdl.exe) uses this method to generate SOAP message headers and return types when a Web Services Description Language (WSDL) document specifies non-SOAP implementations of Web services using the HTTP-GET and HTTP-POST operations. The XML Schema Definition tool (Xsd.exe) uses this method to generate each of the XML schema element declarations in an XML Schema Definition (XSD) document.</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Generates a .NET Framework type, plus attribute declarations, for an XML schema element. </para> </summary> <param name="xmlTypeMapping"> <attribution license="cc4" from="Microsoft" modified="false" />The internal .NET Framework type mapping information for an XML schema element.</param> </Docs> </Member> <Member MemberName="IncludeMetadata"> <MemberSignature Language="C#" Value="public System.CodeDom.CodeAttributeDeclarationCollection IncludeMetadata { get; }" /> <MemberType>Property</MemberType> <ReturnValue> <ReturnType>System.CodeDom.CodeAttributeDeclarationCollection</ReturnType> </ReturnValue> <Docs> <summary>To be added</summary> <value>To be added: an object of type 'System.CodeDom.CodeAttributeDeclarationCollection'</value> <remarks>To be added</remarks> </Docs> <AssemblyInfo> <AssemblyVersion>1.0.5000.0</AssemblyVersion> <AssemblyVersion>2.0.0.0</AssemblyVersion> </AssemblyInfo> </Member> </Members> </Type>