Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

XmlReflectionImporter Class

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

Generates mappings to XML schema element declarations, including literal XML Schema Definition (XSD) message parts in a Web Services Description Language (WSDL) document, for .NET Framework types or Web service method information.

System.Object
  System.Xml.Serialization.XmlReflectionImporter

Namespace:  System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)
public class XmlReflectionImporter

The XmlReflectionImporter type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkXmlReflectionImporter()Initializes a new instance of the XmlReflectionImporter class.
Public methodSupported by the XNA FrameworkXmlReflectionImporter(String)Initializes a new instance of the XmlReflectionImporter class using the specified default XML namespace.
Public methodSupported by the XNA FrameworkXmlReflectionImporter(XmlAttributeOverrides)Initializes a new instance of the XmlReflectionImporter class using the specified XML serialization overrides.
Public methodSupported by the XNA FrameworkXmlReflectionImporter(XmlAttributeOverrides, String)Initializes a new instance of the XmlReflectionImporter class using the specified XML serialization overrides and default XML namespace.
Top
  NameDescription
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodImportMembersMapping(String, String, XmlReflectionMember[], Boolean)Generates internal type mappings for information from a Web service method.
Public methodImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean)Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.
Public methodImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean)Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.
Public methodImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean, XmlMappingAccess)Generates internal type mappings for information from a Web service method.
Public methodSupported by the XNA FrameworkImportTypeMapping(Type)Generates a mapping to an XML Schema element for a specified .NET Framework type.
Public methodSupported by the XNA FrameworkImportTypeMapping(Type, String)Generates a mapping to an XML Schema element for a .NET Framework type, using the specified type and namespace.
Public methodSupported by the XNA FrameworkImportTypeMapping(Type, XmlRootAttribute)Generates a mapping to an XML Schema element for a .NET Framework type, using the specified type and attribute.
Public methodSupported by the XNA FrameworkImportTypeMapping(Type, XmlRootAttribute, String)Generates a mapping to an XML Schema element for a .NET Framework type, using the specified type, attribute, and namespace.
Public methodSupported by the XNA FrameworkIncludeTypeIncludes mappings for a type for later use when import methods are invoked.
Public methodSupported by the XNA FrameworkIncludeTypesIncludes mappings for derived types for later use when import methods are invoked.
Protected methodSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The XmlReflectionImporter class is not used directly. Instead, it is used as follows:

  • By the ServiceDescriptionReflector class while it creates ServiceDescription objects from classes that are identified as Web services.

  • By a Web service or client, including during initialization.

  • To initialize an XmlSerializer object.

  • By the XML Schema Definition tool (Xsd.exe) while the tool generates XML schemas from types in a run-time assembly file.

  • By the Web Services Description Language tool (Wsdl.exe) while the tool generates client proxy classes or abstract server classes from a WSDL document.

The XmlReflectionImporter class is used for Web services when a service or client specifies:

  • Literal use, which indicates 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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.