Freigeben über


XsdDataContractExporter.Export Methode

Definition

Transformiert den Typ der Common Language Runtime (CLR) oder einen Satz von Typen in eine Reihe von XML-Schemas.

Überlädt

Name Beschreibung
Export(ICollection<Assembly>)

Transformiert die Typen, die in der angegebenen Auflistung von Assemblys enthalten sind.

Export(ICollection<Type>)

Transformiert die Typen, die in der ICollection<T> an diese Methode übergeben werden.

Export(Type)

Wandelt den angegebenen .NET-Typ in ein XSD-Schema (XML-Schemadefinitionssprache) um.

Hinweise

Verwenden Sie als empfohlene Vorgehensweise eine der CanExport Überladungen, um zu bestimmen, ob der angegebene Typ oder satz von Typen exportiert werden kann.

Rufen Sie nach dem Aufrufen der Export Methode die Schemas aus der Schemas Eigenschaft ab.

Export(ICollection<Assembly>)

Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs

Transformiert die Typen, die in der angegebenen Auflistung von Assemblys enthalten sind.

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>

A ICollection<T> (von Assembly) mit den zu exportierenden Typen.

Attribute

Ausnahmen

Das assemblies Argument ist null.

Eine Assembly in der Auflistung ist null.

Gilt für:

Export(ICollection<Type>)

Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs

Transformiert die Typen, die in der ICollection<T> an diese Methode übergeben werden.

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>

A ICollection<T> (von Type) mit den zu exportierenden Typen.

Attribute

Ausnahmen

Das types Argument ist null.

Ein Typ in der Auflistung ist null.

Gilt für:

Export(Type)

Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs
Quelle:
XsdDataContractExporter.cs

Wandelt den angegebenen .NET-Typ in ein XSD-Schema (XML-Schemadefinitionssprache) um.

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

Der Type zu transformierenden Code in ein XML-Schema.

Attribute

Ausnahmen

Das type Argument ist null.

Hinweise

Rufen Sie den CanExport Aufruf auf, um zu bestimmen, ob der Typ exportiert werden kann. Nach dem Aufrufen der Export Methode kann das Schema über die Schemas Eigenschaft abgerufen werden.

Gilt für: