XsdDataContractExporter.Export メソッド

定義

共通言語ランタイム (CLR) 型または型のセットを一連の XML スキーマに変換します。

オーバーロード

名前 説明
Export(ICollection<Assembly>)

指定したアセンブリのコレクションに含まれる型を変換します。

Export(ICollection<Type>)

このメソッドに渡される ICollection<T> に含まれる型を変換します。

Export(Type)

指定した .NET 型を 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>

エクスポートする型を含む ICollection<T> ( Type)。

例外

types引数はnull

コレクション内の型が null

適用対象

Export(Type)

指定した .NET 型を 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 プロパティを使用してスキーマを取得できます。

適用対象