Sdílet prostřednictvím


XsdDataContractExporter.Export Metoda

Definice

Transformuje typ CLR (Common Language Runtime) nebo sadu typů na sadu schémat XML.

Přetížení

Name Description
Export(ICollection<Assembly>)

Transformuje typy obsažené v zadané kolekci sestavení.

Export(ICollection<Type>)

Transformuje typy obsažené v ICollection<T> předané metodě.

Export(Type)

Transformuje zadaný typ .NET na schéma XSD (XML Schema Definition Language).

Poznámky

Jako doporučený postup použijte jedno z CanExport přetížení k určení, zda je možné exportovat zadaný typ nebo sadu typů.

Po volání Export metody načtěte schémata z Schemas vlastnosti.

Export(ICollection<Assembly>)

Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs

Transformuje typy obsažené v zadané kolekci sestavení.

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> (of Assembly) obsahující typy k exportu.

Atributy

Výjimky

Argument assemblies je null.

V Assembly kolekci je null.

Platí pro

Export(ICollection<Type>)

Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs

Transformuje typy obsažené v ICollection<T> předané metodě.

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> (of Type) obsahující typy k exportu.

Atributy

Výjimky

Argument types je null.

Typ v kolekci je null.

Platí pro

Export(Type)

Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs
Zdroj:
XsdDataContractExporter.cs

Transformuje zadaný typ .NET na schéma XSD (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)

Parametry

type
Type

Transformace Type na schéma XML.

Atributy

Výjimky

Argument type je null.

Poznámky

Zavoláním CanExport určíte, jestli je možné typ exportovat. Po volání Export metody lze schéma načíst prostřednictvím Schemas vlastnosti.

Platí pro