XsdDataContractExporter.Export Methode

Definitie

Transformeert het CLR-type (Common Language Runtime) of een set typen in een set XML-schema's.

Overloads

Name Description
Export(ICollection<Assembly>)

Transformeert de typen in de opgegeven verzameling assembly's.

Export(ICollection<Type>)

Transformeert de typen die zijn opgenomen in de ICollection<T> doorgegeven aan deze methode.

Export(Type)

Hiermee transformeert u het opgegeven .NET type in een XSD-schema (XML Schema Definition Language).

Opmerkingen

Als aanbevolen praktijk kunt u een van de CanExport overbelastingen gebruiken om te bepalen of het opgegeven type of de set typen kan worden geëxporteerd.

Nadat u de methode hebt Export aangeroepen, haalt u de schema's op uit de Schemas eigenschap.

Export(ICollection<Assembly>)

Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs

Transformeert de typen in de opgegeven verzameling assembly's.

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

Parameters

assemblies
ICollection<Assembly>

Een ICollection<T> (van Assembly) die de te exporteren typen bevat.

Kenmerken

Uitzonderingen

Het assemblies argument is null.

Een Assembly in de verzameling is null.

Van toepassing op

Export(ICollection<Type>)

Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs

Transformeert de typen die zijn opgenomen in de ICollection<T> doorgegeven aan deze methode.

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

Parameters

types
ICollection<Type>

Een ICollection<T> (van Type) die de te exporteren typen bevat.

Kenmerken

Uitzonderingen

Het types argument is null.

Een type in de verzameling is null.

Van toepassing op

Export(Type)

Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs
Bron:
XsdDataContractExporter.cs

Hiermee transformeert u het opgegeven .NET type in een XSD-schema (XML Schema Definition Language).

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)

Parameters

type
Type

De Type om te transformeren in een XML-schema.

Kenmerken

Uitzonderingen

Het type argument is null.

Opmerkingen

Roep de CanExport aan om te bepalen of het type kan worden geëxporteerd. Nadat u de Export methode hebt aangeroepen, kan het schema worden opgehaald via de Schemas eigenschap.

Van toepassing op