XmlSchemaImporter.ImportDerivedTypeMapping 方法

定义

为 XML 架构文档中定义的元素或作为 WSDL 文档的部分的元素生成内部类型映射信息。Generates internal type mapping information for an element defined in an XML schema document or as a part in a WSDL document.

重载

ImportDerivedTypeMapping(XmlQualifiedName, Type)

此 API 支持产品基础结构,不能在代码中直接使用。

为 XML 架构文档中定义的元素生成内部类型映射信息。Generates internal type mapping information for an element defined in an XML schema document.

ImportDerivedTypeMapping(XmlQualifiedName, Type, Boolean)

此 API 支持产品基础结构,不能在代码中直接使用。

为 XML 架构文档中定义的元素或作为 WSDL 文档的部分的元素生成内部类型映射信息。Generates internal type mapping information for an element defined in an XML schema document or as a part in a WSDL document.

ImportDerivedTypeMapping(XmlQualifiedName, Type)

为 XML 架构文档中定义的元素生成内部类型映射信息。Generates internal type mapping information for an element defined in an XML schema document.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportDerivedTypeMapping(System::Xml::XmlQualifiedName ^ name, Type ^ baseType);
public System.Xml.Serialization.XmlTypeMapping ImportDerivedTypeMapping (System.Xml.XmlQualifiedName name, Type? baseType);
public System.Xml.Serialization.XmlTypeMapping ImportDerivedTypeMapping (System.Xml.XmlQualifiedName name, Type baseType);
member this.ImportDerivedTypeMapping : System.Xml.XmlQualifiedName * Type -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportDerivedTypeMapping (name As XmlQualifiedName, baseType As Type) As XmlTypeMapping

参数

name
XmlQualifiedName

一个 XmlQualifiedName,指定在 XML 架构文档中定义的元素的名称。An XmlQualifiedName that specifies the name of an element defined in an XML schema document.

baseType
Type

对应于 XSD 元素的类型生成的 .NET Framework 类型的基类型。A base type for the .NET Framework type that is generated to correspond to an XSD element's type.

返回

XmlTypeMapping

表示 XML 架构元素的 .NET Framework 类型映射信息的 XmlTypeMappingAn XmlTypeMapping representing the.NET Framework type mapping information for an XML schema element.

注解

ImportDerivedTypeMappingXsd.exe 工具使用方法的此重载从 XML 架构定义 (XSD) 文档生成类。This overload of the ImportDerivedTypeMapping method is used by the Xsd.exe tool to generate classes from an XML Schema Definition (XSD) document. 使用 Xsd.exe,而不是直接调用此方法。Instead of calling this method directly, use Xsd.exe.

适用于

ImportDerivedTypeMapping(XmlQualifiedName, Type, Boolean)

为 XML 架构文档中定义的元素或作为 WSDL 文档的部分的元素生成内部类型映射信息。Generates internal type mapping information for an element defined in an XML schema document or as a part in a WSDL document.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 System::Xml::Serialization::XmlTypeMapping ^ ImportDerivedTypeMapping(System::Xml::XmlQualifiedName ^ name, Type ^ baseType, bool baseTypeCanBeIndirect);
public System.Xml.Serialization.XmlTypeMapping ImportDerivedTypeMapping (System.Xml.XmlQualifiedName name, Type? baseType, bool baseTypeCanBeIndirect);
public System.Xml.Serialization.XmlTypeMapping ImportDerivedTypeMapping (System.Xml.XmlQualifiedName name, Type baseType, bool baseTypeCanBeIndirect);
member this.ImportDerivedTypeMapping : System.Xml.XmlQualifiedName * Type * bool -> System.Xml.Serialization.XmlTypeMapping
Public Function ImportDerivedTypeMapping (name As XmlQualifiedName, baseType As Type, baseTypeCanBeIndirect As Boolean) As XmlTypeMapping

参数

name
XmlQualifiedName

一个 XmlQualifiedName,指定在 XML 架构文档中定义的元素的名称。An XmlQualifiedName that specifies the name of an element defined in an XML schema document.

baseType
Type

对应于 XSD 元素的类型生成的 .NET Framework 类型的基类型。A base type for the .NET Framework type that is generated to correspond to an XSD element's type.

baseTypeCanBeIndirect
Boolean

如果指示对应于 XSD 元素的类型可以从基类型间接继承,则为 true;否则为 falsetrue to indicate that the type corresponding to an XSD element can indirectly inherit from the base type; otherwise, false.

返回

XmlTypeMapping

XML 架构元素的 .NET Framework 类型映射信息。The .NET Framework type mapping information for an XML schema element.

注解

ImportDerivedTypeMappingXsd.exe 工具使用方法的此重载从 XML 架构定义 (XSD) 文档生成类。This overload of the ImportDerivedTypeMapping method is used by the Xsd.exe tool to generate classes from an XML Schema Definition (XSD) document. 它还由 Wsdl.exe 工具在从 Web 服务描述语言 (WSDL) 文档生成客户端代理类或抽象服务器类时使用。It also is used by the Wsdl.exe tool while generating client proxy classes or abstract server classes from a Web Services Description Language (WSDL) document. 请不要直接调用此方法,而应使用 Wsdl.exe 或 Xsd.exe。Instead of calling this method directly, use Wsdl.exe or Xsd.exe.

适用于