XsdDataContractExporter.Export Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Transforma o tipo de execução de linguagem comum (CLR), ou conjunto de tipos, num conjunto de esquemas XML.
Sobrecargas
| Name | Description |
|---|---|
| Export(ICollection<Assembly>) |
Transforma os tipos contidos na coleção especificada de montagens. |
| Export(ICollection<Type>) |
Transforma os tipos contidos no ICollection<T> passado para este método. |
| Export(Type) |
Transforma o tipo .NET especificado num esquema de linguagem de definição de esquema XML (XSD). |
Observações
Como prática recomendada, utilize-se uma das CanExport sobrecargas para determinar se o tipo especificado ou o conjunto de tipos pode ser exportado.
Depois de chamar o Export método, recupera 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 montagens.
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 exportar.
- 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> passado para este método.
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 exportar.
- 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 num esquema de linguagem de definição de esquema 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)
Parâmetros
- Atributos
Exceções
O type argumento é null.
Observações
Ligue para CanExport determinar se o tipo pode ser exportado. Após chamar o Export método, o esquema pode ser recuperado através da Schemas propriedade.