Language

XmlReflectionImporter.ImportTypeMapping Method

Definition

Generates a mapping to an XML Schema element for a specified .NET type.

Overloads

Name Description
ImportTypeMapping(Type)

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

Generates a mapping to an XML Schema element for a specified .NET type.

ImportTypeMapping(Type, String)

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

Generates a mapping to an XML Schema element for a .NET type, using the specified type and namespace.

ImportTypeMapping(Type, XmlRootAttribute)

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

Generates a mapping to an XML Schema element for a .NET type, using the specified type and attribute.

ImportTypeMapping(Type, XmlRootAttribute, String)

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

Generates a mapping to an XML Schema element for a .NET type, using the specified type, attribute, and namespace.

ImportTypeMapping(Type)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Generates a mapping to an XML Schema element for a specified .NET type.

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

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportTypeMapping(Type ^ type);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.ImportTypeMapping : Type -> System.Xml.Serialization.XmlTypeMapping
member this.ImportTypeMapping : Type -> System.Xml.Serialization.XmlTypeMapping
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
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.

Attributes

Remarks

It is not necessary to call the ImportTypeMapping method directly.

Applies to

ImportTypeMapping(Type, String)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Generates a mapping to an XML Schema element for a .NET type, using the specified type and namespace.

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

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportTypeMapping(Type ^ type, System::String ^ defaultNamespace);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, string? defaultNamespace);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, string? defaultNamespace);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, string? defaultNamespace);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, string defaultNamespace);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.ImportTypeMapping : Type * string -> System.Xml.Serialization.XmlTypeMapping
member this.ImportTypeMapping : Type * string -> System.Xml.Serialization.XmlTypeMapping
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
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.

Attributes

Remarks

It is not necessary to call the ImportTypeMapping method directly.

Applies to

ImportTypeMapping(Type, XmlRootAttribute)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Generates a mapping to an XML Schema element for a .NET type, using the specified type and attribute.

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

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportTypeMapping(Type ^ type, System::Xml::Serialization::XmlRootAttribute ^ root);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, System.Xml.Serialization.XmlRootAttribute? root);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, System.Xml.Serialization.XmlRootAttribute? root);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, System.Xml.Serialization.XmlRootAttribute? root);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, System.Xml.Serialization.XmlRootAttribute root);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.ImportTypeMapping : Type * System.Xml.Serialization.XmlRootAttribute -> System.Xml.Serialization.XmlTypeMapping
member this.ImportTypeMapping : Type * System.Xml.Serialization.XmlRootAttribute -> System.Xml.Serialization.XmlTypeMapping
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.ImportTypeMapping : Type * System.Xml.Serialization.XmlRootAttribute -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportTypeMapping (type As Type, root As XmlRootAttribute) As XmlTypeMapping

Parameters

type
Type

The .NET type for which to generate a type mapping.

root
XmlRootAttribute

An XmlRootAttribute attribute that is applied to the type.

Returns

An XmlTypeMapping that represents a mapping of a .NET type to an XML Schema element.

Attributes

Remarks

It is not necessary to call the ImportTypeMapping method directly.

Applies to

ImportTypeMapping(Type, XmlRootAttribute, String)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Generates a mapping to an XML Schema element for a .NET type, using the specified type, attribute, and namespace.

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

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportTypeMapping(Type ^ type, System::Xml::Serialization::XmlRootAttribute ^ root, System::String ^ defaultNamespace);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, System.Xml.Serialization.XmlRootAttribute? root, string? defaultNamespace);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, System.Xml.Serialization.XmlRootAttribute? root, string? defaultNamespace);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, System.Xml.Serialization.XmlRootAttribute? root, string? defaultNamespace);
public System.Xml.Serialization.XmlTypeMapping ImportTypeMapping(Type type, System.Xml.Serialization.XmlRootAttribute root, string defaultNamespace);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.ImportTypeMapping : Type * System.Xml.Serialization.XmlRootAttribute * string -> System.Xml.Serialization.XmlTypeMapping
member this.ImportTypeMapping : Type * System.Xml.Serialization.XmlRootAttribute * string -> System.Xml.Serialization.XmlTypeMapping
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.ImportTypeMapping : Type * System.Xml.Serialization.XmlRootAttribute * string -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportTypeMapping (type As Type, root As XmlRootAttribute, defaultNamespace As String) As XmlTypeMapping

Parameters

type
Type

The .NET type for which to generate a type mapping.

root
XmlRootAttribute

An XmlRootAttribute attribute that is applied to the type.

defaultNamespace
String

The default XML namespace to use.

Returns

An XmlTypeMapping that contains the internal .NET mapping of a type to an XML Schema element.

Attributes

Remarks

It is not necessary to call the ImportTypeMapping method directly.

Applies to