共用方式為


XmlReflectionImporter.ImportTypeMapping 方法

定義

針對指定的 .NET Framework 類型,產生 XML 結構描述項目的對應。

多載

ImportTypeMapping(Type)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

針對指定的 .NET 型別,產生 XML 結構描述元素的對應。

ImportTypeMapping(Type, String)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

使用指定的型別與命名空間,針對 .NET 型別產生 XML 結構描述元素的對應。

ImportTypeMapping(Type, XmlRootAttribute)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

使用指定的型別與屬性,針對 .NET 型別產生 XML 結構描述元素的對應。

ImportTypeMapping(Type, XmlRootAttribute, String)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

使用指定的型別、屬性與命名空間,針對 .NET 型別產生 XML 結構描述元素的對應。

ImportTypeMapping(Type)

來源:
XmlReflectionImporter.cs
來源:
XmlReflectionImporter.cs
來源:
XmlReflectionImporter.cs

針對指定的 .NET 型別,產生 XML 結構描述元素的對應。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

type
Type

要為其產生型別對應的 .NET 型別。

傳回

某個型別與 XML 結構描述元素的內部 .NET 對應。

備註

不需要直接呼叫 ImportTypeMapping 方法。

適用於

ImportTypeMapping(Type, String)

來源:
XmlReflectionImporter.cs
來源:
XmlReflectionImporter.cs
來源:
XmlReflectionImporter.cs

使用指定的型別與命名空間,針對 .NET 型別產生 XML 結構描述元素的對應。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

type
Type

要為其產生型別對應的 .NET 型別。

defaultNamespace
String

要使用的預設 XML 命名空間。

傳回

某個型別與 XML 結構描述元素的內部 .NET 對應。

備註

不需要直接呼叫 ImportTypeMapping 方法。

適用於

ImportTypeMapping(Type, XmlRootAttribute)

來源:
XmlReflectionImporter.cs
來源:
XmlReflectionImporter.cs
來源:
XmlReflectionImporter.cs

使用指定的型別與屬性,針對 .NET 型別產生 XML 結構描述元素的對應。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

type
Type

要為其產生型別對應的 .NET 型別。

root
XmlRootAttribute

套用至此類型的 XmlRootAttribute 屬性。

傳回

XmlTypeMapping,代表 .NET 型別與 XML 結構描述元素的對應。

備註

不需要直接呼叫 ImportTypeMapping 方法。

適用於

ImportTypeMapping(Type, XmlRootAttribute, String)

來源:
XmlReflectionImporter.cs
來源:
XmlReflectionImporter.cs
來源:
XmlReflectionImporter.cs

使用指定的型別、屬性與命名空間,針對 .NET 型別產生 XML 結構描述元素的對應。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

type
Type

要為其產生型別對應的 .NET 型別。

root
XmlRootAttribute

套用至此類型的 XmlRootAttribute 屬性。

defaultNamespace
String

要使用的預設 XML 命名空間。

傳回

XmlTypeMapping,其中含有某個型別與 XML 結構描述元素的內部 .NET 對應。

備註

不需要直接呼叫 ImportTypeMapping 方法。

適用於