XsdDataContractExporter 构造函数

定义

初始化 XsdDataContractExporter 类的新实例。Initializes a new instance of the XsdDataContractExporter class.

重载

XsdDataContractExporter()

初始化 XsdDataContractExporter 类的新实例。Initializes a new instance of the XsdDataContractExporter class.

XsdDataContractExporter(XmlSchemaSet)

使用指定的架构集初始化 XsdDataContractExporter 类的新实例。Initializes a new instance of the XsdDataContractExporter class with the specified set of schemas.

XsdDataContractExporter()

初始化 XsdDataContractExporter 类的新实例。Initializes a new instance of the XsdDataContractExporter class.

public:
 XsdDataContractExporter();
public XsdDataContractExporter ();
Public Sub New ()

适用于

XsdDataContractExporter(XmlSchemaSet)

使用指定的架构集初始化 XsdDataContractExporter 类的新实例。Initializes a new instance of the XsdDataContractExporter class with the specified set of schemas.

public:
 XsdDataContractExporter(System::Xml::Schema::XmlSchemaSet ^ schemas);
public XsdDataContractExporter (System.Xml.Schema.XmlSchemaSet? schemas);
public XsdDataContractExporter (System.Xml.Schema.XmlSchemaSet schemas);
new System.Runtime.Serialization.XsdDataContractExporter : System.Xml.Schema.XmlSchemaSet -> System.Runtime.Serialization.XsdDataContractExporter
Public Sub New (schemas As XmlSchemaSet)

参数

schemas
XmlSchemaSet

一个 XmlSchemaSet,它包含要导出的架构。An XmlSchemaSet that contains the schemas to be exported.

注解

当您已有一个要向其添加新架构的 XmlSchemaSet 时,请使用此重载。Use this overload when you have an existing XmlSchemaSet to which you want to add new schemas. 在使用此重载构造 XsdDataContractExporter 后,请调用 Export 方法将新类型添加到现有架构集中。After you construct a XsdDataContractExporter with this overload, call the Export method to add new types to the existing set.

适用于