Partilhar via


XsdDataContractExporter.Export Método

Definição

Transforma o tipo CLR (Common Language Runtime), ou conjunto de tipos, em um conjunto de esquemas XML.

Sobrecargas

Nome Description
Export(ICollection<Assembly>)

Transforma os tipos contidos na coleção especificada de assemblies.

Export(ICollection<Type>)

Transforma os tipos contidos no ICollection<T> método passado.

Export(Type)

Transforma o tipo .NET especificado em um esquema XSD (linguagem de definição de esquema XML).

Comentários

Como uma prática recomendada, use uma das CanExport sobrecargas para determinar se o tipo ou conjunto de tipos especificado pode ser exportado.

Depois de chamar o Export método, recupere os esquemas da Schemas propriedade.

Export(ICollection<Assembly>)

Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs

Transforma os tipos contidos na coleção especificada de assemblies.

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

Parâmetros

assemblies
ICollection<Assembly>

Um ICollection<T> (de Assembly) que contém os tipos a serem exportados.

Atributos

Exceções

O assemblies argumento é null.

Um Assembly na coleção é null.

Aplica-se a

Export(ICollection<Type>)

Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs

Transforma os tipos contidos no ICollection<T> método passado.

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

Parâmetros

types
ICollection<Type>

Um ICollection<T> (de Type) que contém os tipos a serem exportados.

Atributos

Exceções

O types argumento é null.

Um tipo na coleção é null.

Aplica-se a

Export(Type)

Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs
Origem:
XsdDataContractExporter.cs

Transforma o tipo .NET especificado em um esquema XSD (linguagem de definição de esquema XML).

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)

Parâmetros

type
Type

A Type transformação em um esquema XML.

Atributos

Exceções

O type argumento é null.

Comentários

Chame para CanExport determinar se o tipo pode ser exportado. Depois de chamar o Export método, o esquema pode ser recuperado por meio da Schemas propriedade.

Aplica-se a