SoapReflectionImporter.ImportTypeMapping Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an object that is used to map from a type to an XML representation using the specified type.
Overloads
ImportTypeMapping(Type) |
Generates a mapping to an XML Schema element for a .NET type. |
ImportTypeMapping(Type, String) |
Generates a mapping to an XML Schema element for a .NET type. |
ImportTypeMapping(Type)
- Source:
- SoapReflectionImporter.cs
- Source:
- SoapReflectionImporter.cs
- Source:
- SoapReflectionImporter.cs
Generates a mapping to an XML Schema element for a .NET type.
public:
System::Xml::Serialization::XmlTypeMapping ^ ImportTypeMapping(Type ^ type);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping (Type type);
member this.ImportTypeMapping : Type -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportTypeMapping (type As Type) As XmlTypeMapping
Parameters
- type
- Type
The .NET type for which to generate a type mapping.
Returns
Internal .NET mapping of a type to an XML Schema element.
Remarks
The XML Schema element is serialized using SOAP encoding.
You do not need to call the ImportTypeMapping method directly.
Applies to
ImportTypeMapping(Type, String)
- Source:
- SoapReflectionImporter.cs
- Source:
- SoapReflectionImporter.cs
- Source:
- SoapReflectionImporter.cs
Generates a mapping to an XML Schema element for a .NET type.
public:
System::Xml::Serialization::XmlTypeMapping ^ ImportTypeMapping(Type ^ type, System::String ^ defaultNamespace);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping (Type type, string? defaultNamespace);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping (Type type, string defaultNamespace);
member this.ImportTypeMapping : Type * string -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportTypeMapping (type As Type, defaultNamespace As String) As XmlTypeMapping
Parameters
- type
- Type
The .NET type for which to generate a type mapping.
- defaultNamespace
- String
The default XML namespace to use.
Returns
Internal .NET mapping of a type to an XML Schema element.
Remarks
The XML Schema element is serialized using SOAP encoding.
You do not need to call the ImportTypeMapping method directly.