XmlSchemaImporter XmlSchemaImporter XmlSchemaImporter XmlSchemaImporter Class

定義

針對 XML 結構描述項目宣告產生 .NET Framework 型別的內部對應,包括 WSDL 文件中的常值 (Literal) XSD 訊息部分。Generates internal mappings to .NET Framework types for XML schema element declarations, including literal XSD message parts in a WSDL document.

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

public ref class XmlSchemaImporter : System::Xml::Serialization::SchemaImporter
public class XmlSchemaImporter : System.Xml.Serialization.SchemaImporter
type XmlSchemaImporter = class
    inherit SchemaImporter
Public Class XmlSchemaImporter
Inherits SchemaImporter
繼承
XmlSchemaImporterXmlSchemaImporterXmlSchemaImporterXmlSchemaImporter

備註

XmlSchemaImporter類別可供Web 服務描述語言工具 (Wsdl.exe)ServiceDescriptionImporter時從 Web 服務描述語言 (產生用戶端 proxy 類別或抽象伺服器類別的類別WSDL) 文件。The XmlSchemaImporter class is used by the Web Services Description Language Tool (Wsdl.exe) and the ServiceDescriptionImporter class while generating client proxy classes or abstract server classes from a Web Services Description Language (WSDL) document. 類別也會使用Web 服務描述語言工具 (Wsdl.exe)從 XML 結構描述定義 (XSD) 文件產生類別時。The class is also used by the Web Services Description Language Tool (Wsdl.exe) while generating classes from XML Schema Definition (XSD) documents. 而不是直接使用這個類別,使用 Wsdl.exe 或 Xsd.exe。Instead of using this class directly, use Wsdl.exe or Xsd.exe.

XmlSchemaImporter類別有方法可以產生 XSD 文件中,或當做 WSDL 文件中的組件所定義之元素的.NET Framework 型別的內部對應。The XmlSchemaImporter class has methods to generate internal mappings to .NET Framework types for elements defined in an XSD document or as parts in a WSDL document. 下表顯示由 Wsdl.exe 使用類別時:The following list shows when the class is used by Wsdl.exe:

  • WSDL 文件指定常值的用法,解譯為常值 XML 結構描述定義指定的 SOAP 訊息的參數和傳回值 (或要求和回應的文件) 的內容。A WSDL document specifies literal use, where the content of SOAP message parameters and return values (or request and response documents) is literally specified with XML schema definitions.

  • WSDL 文件會指定.NET Framework 的非 SOAP Web 服務,透過 HTTP-GET 和 HTTP-POST 作業實作。A WSDL document specifies the .NET Framework's non-SOAP implementations of Web services via the HTTP-GET and HTTP-POST operations.

建構函式

XmlSchemaImporter(XmlSchemas) XmlSchemaImporter(XmlSchemas) XmlSchemaImporter(XmlSchemas) XmlSchemaImporter(XmlSchemas)

初始化 XmlSchemaImporter 類別的新執行個體,並採用 XmlSchema 物件的集合,表示 WSDL 文件中定義之 SOAP 常值訊息所使用的 XML 結構描述。Initializes a new instance of the XmlSchemaImporter class, taking a collection of XmlSchema objects representing the XML schemas used by SOAP literal messages defined in a WSDL document.

XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, CodeDomProvider, ImportContext) XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, CodeDomProvider, ImportContext) XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, CodeDomProvider, ImportContext) XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, CodeDomProvider, ImportContext)

初始化 XmlSchemaImporter 類別的新執行個體。Initializes a new instance of the XmlSchemaImporter class.

XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, ImportContext) XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, ImportContext) XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, ImportContext) XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, ImportContext)

使用指定的程式碼產生選項和匯入內容,針對 XML 結構描述的集合初始化 XmlSchemaImporter 類別的新執行個體。Initializes a new instance of the XmlSchemaImporter class for a collection of XML schemas, using the specified code generation options and import context.

XmlSchemaImporter(XmlSchemas, CodeIdentifiers) XmlSchemaImporter(XmlSchemas, CodeIdentifiers) XmlSchemaImporter(XmlSchemas, CodeIdentifiers) XmlSchemaImporter(XmlSchemas, CodeIdentifiers)

初始化 XmlSchemaImporter 類別的新執行個體,並採用 XmlSchema 物件的集合,表示由 SOAP 常值訊息所使用的 XML 結構描述,再加上針對 Web 服務描述語言 (WSDL) 文件中定義的繫結所產生的類別。Initializes a new instance of the XmlSchemaImporter class, taking a collection of XmlSchema objects that represents the XML schemas used by SOAP literal messages, plus classes being generated for bindings defined in a Web Services Description Language (WSDL) document.

XmlSchemaImporter(XmlSchemas, CodeIdentifiers, CodeGenerationOptions) XmlSchemaImporter(XmlSchemas, CodeIdentifiers, CodeGenerationOptions) XmlSchemaImporter(XmlSchemas, CodeIdentifiers, CodeGenerationOptions) XmlSchemaImporter(XmlSchemas, CodeIdentifiers, CodeGenerationOptions)

初始化 XmlSchemaImporter 類別的新執行個體,並採用 XmlSchema 物件的集合,表示由 SOAP 常值訊息所使用的 XML 結構描述,再加上針對 WSDL 文件中定義的繫結所產生的類別,以及 CodeGenerationOptions 列舉值。Initializes a new instance of the XmlSchemaImporter class, taking a collection of XmlSchema objects that represents the XML schemas used by SOAP literal messages, plus classes being generated for bindings defined in a WSDL document, and a CodeGenerationOptions enumeration value.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
ImportAnyType(XmlQualifiedName, String) ImportAnyType(XmlQualifiedName, String) ImportAnyType(XmlQualifiedName, String) ImportAnyType(XmlQualifiedName, String)

針對 WSDL 文件中定義的單一 (SOAP) 常值項目部分,產生內部型別對應資訊。Generates internal type mapping information for a single, (SOAP) literal element part defined in a WSDL document.

ImportDerivedTypeMapping(XmlQualifiedName, Type) ImportDerivedTypeMapping(XmlQualifiedName, Type) ImportDerivedTypeMapping(XmlQualifiedName, Type) ImportDerivedTypeMapping(XmlQualifiedName, Type)

產生 XML 結構描述文件中所定義之項目的內部型別對應資訊。Generates internal type mapping information for an element defined in an XML schema document.

ImportDerivedTypeMapping(XmlQualifiedName, Type, Boolean) ImportDerivedTypeMapping(XmlQualifiedName, Type, Boolean) ImportDerivedTypeMapping(XmlQualifiedName, Type, Boolean) 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.

ImportMembersMapping(String, String, SoapSchemaMember[]) ImportMembersMapping(String, String, SoapSchemaMember[]) ImportMembersMapping(String, String, SoapSchemaMember[]) ImportMembersMapping(String, String, SoapSchemaMember[])

針對在 WSDL 文件中定義之常值使用 SOAP 訊息的項目部分產生內部型別對應資訊。Generates internal type mapping information for the element parts of a literal-use SOAP message defined in a WSDL document.

ImportMembersMapping(XmlQualifiedName) ImportMembersMapping(XmlQualifiedName) ImportMembersMapping(XmlQualifiedName) ImportMembersMapping(XmlQualifiedName)

針對在 WSDL 文件中定義之常值用法 SOAP 訊息的單一項目部分產生內部型別對應資訊。Generates internal type mapping information for a single element part of a literal-use SOAP message defined in a WSDL document.

ImportMembersMapping(XmlQualifiedName[]) ImportMembersMapping(XmlQualifiedName[]) ImportMembersMapping(XmlQualifiedName[]) ImportMembersMapping(XmlQualifiedName[])

針對在 WSDL 文件中定義之常值使用 SOAP 訊息的項目部分產生內部型別對應資訊。Generates internal type mapping information for the element parts of a literal-use SOAP message defined in a WSDL document.

ImportMembersMapping(XmlQualifiedName[], Type, Boolean) ImportMembersMapping(XmlQualifiedName[], Type, Boolean) ImportMembersMapping(XmlQualifiedName[], Type, Boolean) ImportMembersMapping(XmlQualifiedName[], Type, Boolean)

針對在 WSDL 文件中定義之常值使用 SOAP 訊息的項目部分產生內部型別對應資訊。Generates internal type mapping information for the element parts of a literal-use SOAP message defined in a WSDL document.

ImportSchemaType(XmlQualifiedName) ImportSchemaType(XmlQualifiedName) ImportSchemaType(XmlQualifiedName) ImportSchemaType(XmlQualifiedName)

產生 XML 結構描述文件中所定義之項目的內部型別對應資訊。Generates internal type mapping information for an element defined in an XML schema document.

ImportSchemaType(XmlQualifiedName, Type) ImportSchemaType(XmlQualifiedName, Type) ImportSchemaType(XmlQualifiedName, Type) ImportSchemaType(XmlQualifiedName, Type)

產生 XML 結構描述文件中所定義之項目的內部型別對應資訊。Generates internal type mapping information for an element defined in an XML schema document.

ImportSchemaType(XmlQualifiedName, Type, Boolean) ImportSchemaType(XmlQualifiedName, Type, Boolean) ImportSchemaType(XmlQualifiedName, Type, Boolean) ImportSchemaType(XmlQualifiedName, Type, Boolean)

產生 XML 結構描述文件中所定義之項目的內部型別對應資訊。Generates internal type mapping information for an element defined in an XML schema document.

ImportTypeMapping(XmlQualifiedName) ImportTypeMapping(XmlQualifiedName) ImportTypeMapping(XmlQualifiedName) ImportTypeMapping(XmlQualifiedName)

產生 XML 結構描述文件中所定義之項目的內部型別對應資訊。Generates internal type mapping information for an element defined in an XML schema document.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱