XsdDataContractExporter.Export 方法

定义

将公共语言运行库 (CLR) 类型或类型集转换成一组 XML 架构。

重载

Export(ICollection<Assembly>)

对指定的程序集集合中包含的类型进行转换。

Export(ICollection<Type>)

对传递给该方法的 ICollection<T> 中包含的类型进行转换。

Export(Type)

将指定的.NET Framework类型转换为 XML 架构定义语言 (XSD) 架构。

注解

建议使用 CanExport 重载之一来确定是否可以导出指定的类型或类型集。

调用 Export 方法后,从 Schemas 属性检索架构。

Export(ICollection<Assembly>)

对指定的程序集集合中包含的类型进行转换。

public:
 void Export(System::Collections::Generic::ICollection<System::Reflection::Assembly ^> ^ assemblies);
public void Export (System.Collections.Generic.ICollection<System.Reflection.Assembly> assemblies);
member this.Export : System.Collections.Generic.ICollection<System.Reflection.Assembly> -> unit
Public Sub Export (assemblies As ICollection(Of Assembly))

参数

assemblies
ICollection<Assembly>

一个由 ICollection<T> 组成的 Assembly,其中包含要导出的类型。

例外

assemblies 参数为 null

集合中的一个 Assemblynull

适用于

Export(ICollection<Type>)

对传递给该方法的 ICollection<T> 中包含的类型进行转换。

public:
 void Export(System::Collections::Generic::ICollection<Type ^> ^ types);
public void Export (System.Collections.Generic.ICollection<Type> types);
member this.Export : System.Collections.Generic.ICollection<Type> -> unit
Public Sub Export (types As ICollection(Of Type))

参数

types
ICollection<Type>

一个由 Type 组成的 ICollection<T>,其中包含要导出的类型。

例外

types 参数为 null

集合中的一个类型为 null

适用于

Export(Type)

将指定的.NET Framework类型转换为 XML 架构定义语言 (XSD) 架构。

public:
 void Export(Type ^ type);
public void Export (Type type);
member this.Export : Type -> unit
Public Sub Export (type As Type)

参数

type
Type

要转换成 XML 架构的 Type

例外

type 参数为 null

注解

调用 CanExport 来确定该类型是否可以导出。 调用 Export 方法后,可以通过 Schemas 属性检索架构。

适用于