XmlReflectionImporter Class

XmlReflectionImporter Class

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

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.Serialization (in System.Xml.Serialization.dll)

public class XmlReflectionImporter

The XmlReflectionImporter type exposes the following members.

  NameDescription
Public methodXmlReflectionImporter()Initializes a new instance of the XmlReflectionImporter class.
Public methodXmlReflectionImporter(String)Initializes a new instance of the XmlReflectionImporter class using the specified default XML namespace.
Public methodXmlReflectionImporter(XmlAttributeOverrides)Initializes a new instance of the XmlReflectionImporter class using the specified XML serialization overrides.
Public methodXmlReflectionImporter(XmlAttributeOverrides, String)Initializes a new instance of the XmlReflectionImporter class using the specified XML serialization overrides and default XML namespace.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodImportTypeMapping(Type)Generates a mapping to an XML Schema element for a specified .NET Framework type.
Public methodImportTypeMapping(Type, String)Generates a mapping to an XML Schema element for a .NET Framework type, using the specified type and namespace.
Public methodImportTypeMapping(Type, XmlRootAttribute)Generates a mapping to an XML Schema element for a .NET Framework type, using the specified type and attribute.
Public methodImportTypeMapping(Type, XmlRootAttribute, String)Generates a mapping to an XML Schema element for a .NET Framework type, using the specified type, attribute, and namespace.
Public methodIncludeTypeIncludes mappings for a type for later use when import methods are invoked.
Public methodIncludeTypesIncludes mappings for derived types for later use when import methods are invoked.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns 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 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

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

Show:
© 2017 Microsoft