XmlReflectionImporter.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.
Generates a mapping to an XML Schema element for a specified .NET Framework type.
Overloads
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
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);
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
It is not necessary to call the ImportTypeMapping method directly.
Applies to
ImportTypeMapping(Type, String)
- 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);
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
It is not necessary to call the ImportTypeMapping method directly.
Applies to
ImportTypeMapping(Type, XmlRootAttribute)
- 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);
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);
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.
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
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);
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);
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.
Remarks
It is not necessary to call the ImportTypeMapping method directly.