SoapReflectionImporter.ImportTypeMapping Method

Definition

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)

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)

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.

Applies to