次の方法で共有


XsdDataContractExporter.Export メソッド

定義

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

オーバーロード

名前 説明
Export(ICollection<Assembly>)

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

Export(ICollection<Type>)

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

Export(Type)

指定した .NET 型を XML スキーマ定義言語 (XSD) スキーマに変換します。

注釈

推奨される方法として、 CanExport オーバーロードのいずれかを使用して、指定した型または型のセットをエクスポートできるかどうかを判断します。

Export メソッドを呼び出した後、Schemas プロパティからスキーマを取得します。

Export(ICollection<Assembly>)

ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs

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

public:
 void Export(System::Collections::Generic::ICollection<System::Reflection::Assembly ^> ^ assemblies);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public void Export(System.Collections.Generic.ICollection<System.Reflection.Assembly> assemblies);
public void Export(System.Collections.Generic.ICollection<System.Reflection.Assembly> assemblies);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public void Export(System.Collections.Generic.ICollection<System.Reflection.Assembly> assemblies);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
member this.Export : System.Collections.Generic.ICollection<System.Reflection.Assembly> -> unit
member this.Export : System.Collections.Generic.ICollection<System.Reflection.Assembly> -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
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>)

ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs

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

public:
 void Export(System::Collections::Generic::ICollection<Type ^> ^ types);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public void Export(System.Collections.Generic.ICollection<Type> types);
public void Export(System.Collections.Generic.ICollection<Type> types);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public void Export(System.Collections.Generic.ICollection<Type> types);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
member this.Export : System.Collections.Generic.ICollection<Type> -> unit
member this.Export : System.Collections.Generic.ICollection<Type> -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
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)

ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs
ソース:
XsdDataContractExporter.cs

指定した .NET 型を XML スキーマ定義言語 (XSD) スキーマに変換します。

public:
 void Export(Type ^ type);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public void Export(Type type);
public void Export(Type type);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public void Export(Type type);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
member this.Export : Type -> unit
member this.Export : Type -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
member this.Export : Type -> unit
Public Sub Export (type As Type)

パラメーター

type
Type

XML スキーマに変換する Type

属性

例外

type引数はnull

注釈

CanExportを呼び出して、型をエクスポートできるかどうかを判断します。 Export メソッドを呼び出した後は、Schemas プロパティを使用してスキーマを取得できます。

適用対象