Udostępnij za pośrednictwem


XsdDataContractExporter.Export Metoda

Definicja

Przekształca typ środowiska uruchomieniowego języka wspólnego (CLR) lub zestaw typów na zestaw schematów XML.

Przeciążenia

Nazwa Opis
Export(ICollection<Assembly>)

Przekształca typy zawarte w określonej kolekcji zestawów.

Export(ICollection<Type>)

Przekształca typy zawarte w przekazanej ICollection<T> metodzie.

Export(Type)

Przekształca określony typ platformy .NET w schemat języka definicji schematu XML (XSD).

Uwagi

Zalecaną praktyką jest użycie jednego z CanExport przeciążeń, aby określić, czy można wyeksportować określony typ lub zestaw typów.

Po wywołaniu Export metody pobierz schematy z Schemas właściwości .

Export(ICollection<Assembly>)

Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs

Przekształca typy zawarte w określonej kolekcji zestawów.

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

Parametry

assemblies
ICollection<Assembly>

A ICollection<T> (z Assembly) zawierający typy do wyeksportowania.

Atrybuty

Wyjątki

Argumentem assemblies jest null.

Element Assembly w kolekcji to null.

Dotyczy

Export(ICollection<Type>)

Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs

Przekształca typy zawarte w przekazanej ICollection<T> metodzie.

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

Parametry

types
ICollection<Type>

A ICollection<T> (z Type) zawierający typy do wyeksportowania.

Atrybuty

Wyjątki

Argumentem types jest null.

Typ kolekcji to null.

Dotyczy

Export(Type)

Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs
Źródło:
XsdDataContractExporter.cs

Przekształca określony typ platformy .NET w schemat języka definicji schematu 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)

Parametry

type
Type

Element Type do przekształcenia w schemat XML.

Atrybuty

Wyjątki

Argumentem type jest null.

Uwagi

Wywołaj metodę , CanExport aby określić, czy można wyeksportować typ. Po wywołaniu Export metody można pobrać schemat za pośrednictwem Schemas właściwości .

Dotyczy