XmlSchemaImporter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 XmlSchemaImporter 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| XmlSchemaImporter(XmlSchemas) |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 初始化該類別的新實例 XmlSchemaImporter ,取用一組 XmlSchema 代表 SOAP 文字訊息在 WSDL 文件中定義的 XML 結構的物件集合。 |
| XmlSchemaImporter(XmlSchemas, CodeIdentifiers) |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 初始化該類別的新實例 XmlSchemaImporter ,取一組 XmlSchema 代表 SOAP 字面訊息所用 XML 架構的物件,以及為 Web Services Description Language(WSDL)文件中定義的綁定所產生的類別。 |
| XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, ImportContext) |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 利用指定的程式碼產生選項與匯入上下文,初始化該類別的新實例 XmlSchemaImporter ,用於一組 XML 架構。 |
| XmlSchemaImporter(XmlSchemas, CodeIdentifiers, CodeGenerationOptions) |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 初始化該類別的新實例 XmlSchemaImporter ,取一組 XmlSchema 代表 SOAP 文字訊息所用 XML 架構的物件,加上 WSDL 文件中定義的綁定所產生的類別,以及 CodeGenerationOptions 一個列舉值。 |
| XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, CodeDomProvider, ImportContext) |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 初始化 XmlSchemaImporter 類別的新執行個體。 |
XmlSchemaImporter(XmlSchemas)
初始化該類別的新實例 XmlSchemaImporter ,取用一組 XmlSchema 代表 SOAP 文字訊息在 WSDL 文件中定義的 XML 結構的物件集合。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
XmlSchemaImporter(System::Xml::Serialization::XmlSchemas ^ schemas);
[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 XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas);
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas);
[<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")>]
new System.Xml.Serialization.XmlSchemaImporter : System.Xml.Serialization.XmlSchemas -> System.Xml.Serialization.XmlSchemaImporter
new System.Xml.Serialization.XmlSchemaImporter : System.Xml.Serialization.XmlSchemas -> System.Xml.Serialization.XmlSchemaImporter
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
new System.Xml.Serialization.XmlSchemaImporter : System.Xml.Serialization.XmlSchemas -> System.Xml.Serialization.XmlSchemaImporter
Public Sub New (schemas As XmlSchemas)
參數
- schemas
- XmlSchemas
物件的 XmlSchema 集合。
- 屬性
備註
當 WSDL 文件指定資料依照結構<序列化時,請使用此建構子(soap:body use = 'literal' />)。
與其直接建立類別實例 XmlSchemaImporter ,不如使用 Wsdl.exe 或 Xsd.exe。
適用於
XmlSchemaImporter(XmlSchemas, CodeIdentifiers)
初始化該類別的新實例 XmlSchemaImporter ,取一組 XmlSchema 代表 SOAP 字面訊息所用 XML 架構的物件,以及為 Web Services Description Language(WSDL)文件中定義的綁定所產生的類別。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
XmlSchemaImporter(System::Xml::Serialization::XmlSchemas ^ schemas, System::Xml::Serialization::CodeIdentifiers ^ typeIdentifiers);
[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 XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeIdentifiers? typeIdentifiers);
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeIdentifiers? typeIdentifiers);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeIdentifiers? typeIdentifiers);
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeIdentifiers typeIdentifiers);
[<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")>]
new System.Xml.Serialization.XmlSchemaImporter : System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.CodeIdentifiers -> System.Xml.Serialization.XmlSchemaImporter
new System.Xml.Serialization.XmlSchemaImporter : System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.CodeIdentifiers -> System.Xml.Serialization.XmlSchemaImporter
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
new System.Xml.Serialization.XmlSchemaImporter : System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.CodeIdentifiers -> System.Xml.Serialization.XmlSchemaImporter
Public Sub New (schemas As XmlSchemas, typeIdentifiers As CodeIdentifiers)
參數
- schemas
- XmlSchemas
XmlSchemas 物件。
- typeIdentifiers
- CodeIdentifiers
一個 CodeIdentifiers 物件,指定一組正在為 WSDL 文件中定義的綁定產生的類別集合。
- 屬性
備註
當 WSDL 文件指定資料依照結構<序列化時,請使用此建構子(soap:body use = 'literal' />)。
與其直接建立類別實例 XmlSchemaImporter ,不如使用 Wsdl.exe 或 Xsd.exe。
適用於
XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, ImportContext)
利用指定的程式碼產生選項與匯入上下文,初始化該類別的新實例 XmlSchemaImporter ,用於一組 XML 架構。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
XmlSchemaImporter(System::Xml::Serialization::XmlSchemas ^ schemas, System::Xml::Serialization::CodeGenerationOptions options, System::Xml::Serialization::ImportContext ^ context);
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeGenerationOptions options, System.Xml.Serialization.ImportContext context);
new System.Xml.Serialization.XmlSchemaImporter : System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.CodeGenerationOptions * System.Xml.Serialization.ImportContext -> System.Xml.Serialization.XmlSchemaImporter
Public Sub New (schemas As XmlSchemas, options As CodeGenerationOptions, context As ImportContext)
參數
- schemas
- XmlSchemas
物件的 XmlSchema 集合。
- options
- CodeGenerationOptions
一個 CodeGenerationOptions 列舉,指定程式碼產生選項。
- context
- ImportContext
一個 ImportContext 指定匯入上下文的實例。
適用於
XmlSchemaImporter(XmlSchemas, CodeIdentifiers, CodeGenerationOptions)
初始化該類別的新實例 XmlSchemaImporter ,取一組 XmlSchema 代表 SOAP 文字訊息所用 XML 架構的物件,加上 WSDL 文件中定義的綁定所產生的類別,以及 CodeGenerationOptions 一個列舉值。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
XmlSchemaImporter(System::Xml::Serialization::XmlSchemas ^ schemas, System::Xml::Serialization::CodeIdentifiers ^ typeIdentifiers, System::Xml::Serialization::CodeGenerationOptions options);
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeIdentifiers typeIdentifiers, System.Xml.Serialization.CodeGenerationOptions options);
new System.Xml.Serialization.XmlSchemaImporter : System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.CodeIdentifiers * System.Xml.Serialization.CodeGenerationOptions -> System.Xml.Serialization.XmlSchemaImporter
Public Sub New (schemas As XmlSchemas, typeIdentifiers As CodeIdentifiers, options As CodeGenerationOptions)
參數
- schemas
- XmlSchemas
物件的 XmlSchema 集合。
- typeIdentifiers
- CodeIdentifiers
一個 CodeIdentifiers 物件,指定一組正在為 WSDL 文件中定義的綁定產生的類別集合。
- options
- CodeGenerationOptions
CodeGenerationOptions 值的位元組合,用以指定產生網路服務.NET型別時應使用的選項。
備註
當 WSDL 文件指定資料依照結構<序列化時,請使用此建構子(soap:body use = 'literal' />)。
與其直接建立類別實例 XmlSchemaImporter ,不如使用 Wsdl.exe 或 Xsd.exe。
適用於
XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, CodeDomProvider, ImportContext)
初始化 XmlSchemaImporter 類別的新執行個體。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
XmlSchemaImporter(System::Xml::Serialization::XmlSchemas ^ schemas, System::Xml::Serialization::CodeGenerationOptions options, System::CodeDom::Compiler::CodeDomProvider ^ codeProvider, System::Xml::Serialization::ImportContext ^ context);
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeGenerationOptions options, System.CodeDom.Compiler.CodeDomProvider codeProvider, System.Xml.Serialization.ImportContext context);
new System.Xml.Serialization.XmlSchemaImporter : System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.CodeGenerationOptions * System.CodeDom.Compiler.CodeDomProvider * System.Xml.Serialization.ImportContext -> System.Xml.Serialization.XmlSchemaImporter
Public Sub New (schemas As XmlSchemas, options As CodeGenerationOptions, codeProvider As CodeDomProvider, context As ImportContext)
參數
- schemas
- XmlSchemas
物件的 XmlSchema 集合。
- options
- CodeGenerationOptions
CodeGenerationOptions 值的位元組合,用以指定產生網路服務.NET型別時應使用的選項。
- codeProvider
- CodeDomProvider
CodeDomProvider A 用於產生序列化程式碼。
- context
- ImportContext
一個 ImportContext 指定匯入上下文的實例。