Language

XmlSchemaImporter.ImportSchemaType Method

Definition

Generates internal type mapping information for an element defined in an XML schema document.

Overloads

Name Description
ImportSchemaType(XmlQualifiedName)

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

Generates internal type mapping information for an element defined in an XML schema document.

ImportSchemaType(XmlQualifiedName, Type)

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

Generates internal type mapping information for an element defined in an XML schema document.

ImportSchemaType(XmlQualifiedName, Type, Boolean)

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

Generates internal type mapping information for an element defined in an XML schema document.

ImportSchemaType(XmlQualifiedName)

Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs

Generates internal type mapping information for an element defined in an XML schema document.

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

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportSchemaType(System::Xml::XmlQualifiedName ^ typeName);
[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 ImportSchemaType(System.Xml.XmlQualifiedName typeName);
public System.Xml.Serialization.XmlTypeMapping ImportSchemaType(System.Xml.XmlQualifiedName typeName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportSchemaType(System.Xml.XmlQualifiedName typeName);
[<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.ImportSchemaType : System.Xml.XmlQualifiedName -> System.Xml.Serialization.XmlTypeMapping
member this.ImportSchemaType : System.Xml.XmlQualifiedName -> System.Xml.Serialization.XmlTypeMapping
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.ImportSchemaType : System.Xml.XmlQualifiedName -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportSchemaType (typeName As XmlQualifiedName) As XmlTypeMapping

Parameters

typeName
XmlQualifiedName

A XmlQualifiedName that specifies an XML element.

Returns

A XmlTypeMapping object that describes a type mapping.

Attributes

Applies to

ImportSchemaType(XmlQualifiedName, Type)

Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs

Generates internal type mapping information for an element defined in an XML schema document.

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

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportSchemaType(System::Xml::XmlQualifiedName ^ typeName, Type ^ baseType);
[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 ImportSchemaType(System.Xml.XmlQualifiedName typeName, Type? baseType);
public System.Xml.Serialization.XmlTypeMapping ImportSchemaType(System.Xml.XmlQualifiedName typeName, Type? baseType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportSchemaType(System.Xml.XmlQualifiedName typeName, Type? baseType);
public System.Xml.Serialization.XmlTypeMapping ImportSchemaType(System.Xml.XmlQualifiedName typeName, Type baseType);
[<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.ImportSchemaType : System.Xml.XmlQualifiedName * Type -> System.Xml.Serialization.XmlTypeMapping
member this.ImportSchemaType : System.Xml.XmlQualifiedName * Type -> System.Xml.Serialization.XmlTypeMapping
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.ImportSchemaType : System.Xml.XmlQualifiedName * Type -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportSchemaType (typeName As XmlQualifiedName, baseType As Type) As XmlTypeMapping

Parameters

typeName
XmlQualifiedName

A XmlQualifiedName that specifies an XML element.

baseType
Type

A Type object that specifies a base type.

Returns

A XmlTypeMapping object that describes a type mapping.

Attributes

Applies to

ImportSchemaType(XmlQualifiedName, Type, Boolean)

Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs

Generates internal type mapping information for an element defined in an XML schema document.

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

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportSchemaType(System::Xml::XmlQualifiedName ^ typeName, Type ^ baseType, bool baseTypeCanBeIndirect);
[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 ImportSchemaType(System.Xml.XmlQualifiedName typeName, Type? baseType, bool baseTypeCanBeIndirect);
public System.Xml.Serialization.XmlTypeMapping ImportSchemaType(System.Xml.XmlQualifiedName typeName, Type? baseType, bool baseTypeCanBeIndirect);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public System.Xml.Serialization.XmlTypeMapping ImportSchemaType(System.Xml.XmlQualifiedName typeName, Type? baseType, bool baseTypeCanBeIndirect);
public System.Xml.Serialization.XmlTypeMapping ImportSchemaType(System.Xml.XmlQualifiedName typeName, Type baseType, bool baseTypeCanBeIndirect);
[<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.ImportSchemaType : System.Xml.XmlQualifiedName * Type * bool -> System.Xml.Serialization.XmlTypeMapping
member this.ImportSchemaType : System.Xml.XmlQualifiedName * Type * bool -> System.Xml.Serialization.XmlTypeMapping
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.ImportSchemaType : System.Xml.XmlQualifiedName * Type * bool -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportSchemaType (typeName As XmlQualifiedName, baseType As Type, baseTypeCanBeIndirect As Boolean) As XmlTypeMapping

Parameters

typeName
XmlQualifiedName

A XmlQualifiedName that specifies an XML element.

baseType
Type

A Type object that specifies a base type.

baseTypeCanBeIndirect
Boolean

A Boolean value that specifies whether the generated type can indirectly inherit the baseType.

Returns

A XmlTypeMapping object that describes a type mapping.

Attributes

Applies to