Bagikan melalui


XsdDataContractExporter.Export Metode

Definisi

Mengubah jenis runtime bahasa umum (CLR), atau sekumpulan jenis, menjadi sekumpulan skema XML.

Overload

Nama Deskripsi
Export(ICollection<Assembly>)

Mengubah jenis yang terkandung dalam kumpulan rakitan yang ditentukan.

Export(ICollection<Type>)

Mengubah jenis yang terkandung dalam yang diteruskan ICollection<T> ke metode ini.

Export(Type)

Mengubah jenis .NET yang ditentukan menjadi skema bahasa definisi skema XML (XSD).

Keterangan

Sebagai praktik yang direkomendasikan, gunakan salah CanExport satu kelebihan beban untuk menentukan apakah jenis atau set jenis yang ditentukan dapat diekspor.

Setelah memanggil Export metode , ambil skema dari Schemas properti .

Export(ICollection<Assembly>)

Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs

Mengubah jenis yang terkandung dalam kumpulan rakitan yang ditentukan.

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

Parameter

assemblies
ICollection<Assembly>

ICollection<T> (dari Assembly) yang berisi jenis yang akan diekspor.

Atribut

Pengecualian

Argumennya assemblies adalah null.

Dalam Assembly koleksi adalah null.

Berlaku untuk

Export(ICollection<Type>)

Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs

Mengubah jenis yang terkandung dalam yang diteruskan ICollection<T> ke metode ini.

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

Parameter

types
ICollection<Type>

ICollection<T> (dari Type) yang berisi jenis yang akan diekspor.

Atribut

Pengecualian

Argumennya types adalah null.

Jenis dalam koleksi adalah null.

Berlaku untuk

Export(Type)

Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs
Sumber:
XsdDataContractExporter.cs

Mengubah jenis .NET yang ditentukan menjadi skema bahasa definisi skema 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)

Parameter

type
Type

Type untuk berubah menjadi skema XML.

Atribut

Pengecualian

Argumennya type adalah null.

Keterangan

CanExport Panggil untuk menentukan apakah jenis dapat diekspor. Setelah memanggil Export metode , skema dapat diambil melalui Schemas properti .

Berlaku untuk