XsdDataContractExporter.Export Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Transforma el tipo de Common Language Runtime (CLR) o el conjunto de tipos en un conjunto de esquemas XML.
Sobrecargas
| Nombre | Description |
|---|---|
| Export(ICollection<Assembly>) |
Transforma los tipos contenidos en la colección especificada de ensamblados. |
| Export(ICollection<Type>) |
Transforma los tipos contenidos en el ICollection<T> objeto pasado a este método. |
| Export(Type) |
Transforma el tipo de .NET especificado en un esquema de lenguaje de definición de esquemas XML (XSD). |
Comentarios
Como práctica recomendada, use una de las CanExport sobrecargas para determinar si se puede exportar el tipo o conjunto de tipos especificados.
Después de llamar al Export método , recupere los esquemas de la Schemas propiedad .
Export(ICollection<Assembly>)
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
Transforma los tipos contenidos en la colección especificada de ensamblados.
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>
objeto ICollection<T> (de Assembly) que contiene los tipos que se van a exportar.
- Atributos
Excepciones
El assemblies argumento es null.
Un Assembly objeto de la colección es null.
Se aplica a
Export(ICollection<Type>)
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
Transforma los tipos contenidos en el ICollection<T> objeto pasado a 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>
objeto ICollection<T> (de Type) que contiene los tipos que se van a exportar.
- Atributos
Excepciones
El types argumento es null.
Un tipo de la colección es null.
Se aplica a
Export(Type)
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
Transforma el tipo de .NET especificado en un esquema de lenguaje de definición de esquemas 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
Excepciones
El type argumento es null.
Comentarios
CanExport Llame a para determinar si el tipo se puede exportar. Después de llamar al Export método , el esquema se puede recuperar a través de la Schemas propiedad .