Прочетете на английски Редактиране

Споделяне чрез


XmlSchemaImporter Constructors

Definition

Initializes a new instance of the XmlSchemaImporter class.

Overloads

XmlSchemaImporter(XmlSchemas)

This API supports the product infrastructure and is not intended to be used directly from your code.

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, CodeIdentifiers)

This API supports the product infrastructure and is not intended to be used directly from your code.

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, CodeGenerationOptions, ImportContext)

This API supports the product infrastructure and is not intended to be used directly from your code.

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, CodeGenerationOptions)

This API supports the product infrastructure and is not intended to be used directly from your code.

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.

XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, CodeDomProvider, ImportContext)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the XmlSchemaImporter class.

XmlSchemaImporter(XmlSchemas)

Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs

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.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas);

Parameters

schemas
XmlSchemas

A collection of XmlSchema objects.

Remarks

Use this constructor when a WSDL document specifies that the data is serialized according to a schema (<soap:body use = 'literal' />).

Instead of directly creating an instance of the XmlSchemaImporter class, use Wsdl.exe or Xsd.exe.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

XmlSchemaImporter(XmlSchemas, CodeIdentifiers)

Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs
Source:
XmlSchemaImporter.cs

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.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeIdentifiers? typeIdentifiers);
C#
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeIdentifiers typeIdentifiers);

Parameters

schemas
XmlSchemas

An XmlSchemas object.

typeIdentifiers
CodeIdentifiers

A CodeIdentifiers object that specifies a collection of classes being generated for bindings defined in a WSDL document.

Remarks

Use this constructor when a WSDL document specifies that the data is serialized according to a schema (<soap:body use = 'literal' />).

Instead of directly creating an instance of the XmlSchemaImporter class, use Wsdl.exe or Xsd.exe.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, ImportContext)

Initializes a new instance of the XmlSchemaImporter class for a collection of XML schemas, using the specified code generation options and import context.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeGenerationOptions options, System.Xml.Serialization.ImportContext context);

Parameters

schemas
XmlSchemas

A collection of XmlSchema objects.

options
CodeGenerationOptions

A CodeGenerationOptions enumeration that specifies code generation options.

context
ImportContext

A ImportContext instance that specifies the import context.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

XmlSchemaImporter(XmlSchemas, CodeIdentifiers, 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.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeIdentifiers typeIdentifiers, System.Xml.Serialization.CodeGenerationOptions options);

Parameters

schemas
XmlSchemas

A collection of XmlSchema objects.

typeIdentifiers
CodeIdentifiers

A CodeIdentifiers object that specifies a collection of classes being generated for bindings defined in a WSDL document.

options
CodeGenerationOptions

A bitwise combination of the CodeGenerationOptions values that specifies the options to use when generating .NET Framework types for a Web service.

Remarks

Use this constructor when a WSDL document specifies that the data is serialized according to a schema (<soap:body use = 'literal' />).

Instead of directly creating an instance of the XmlSchemaImporter class, use Wsdl.exe or Xsd.exe.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

XmlSchemaImporter(XmlSchemas, CodeGenerationOptions, CodeDomProvider, ImportContext)

Initializes a new instance of the XmlSchemaImporter class.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public XmlSchemaImporter(System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.CodeGenerationOptions options, System.CodeDom.Compiler.CodeDomProvider codeProvider, System.Xml.Serialization.ImportContext context);

Parameters

schemas
XmlSchemas

A collection of XmlSchema objects.

options
CodeGenerationOptions

A bitwise combination of the CodeGenerationOptions values that specifies the options to use when generating .NET Framework types for a Web service.

codeProvider
CodeDomProvider

A CodeDomProvider used to generate the serialization code.

context
ImportContext

A ImportContext instance that specifies the import context.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1