XsdDataContractExporter.Export Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Trasforma il tipo CLR (Common Language Runtime) o il set di tipi in un set di XML Schema.
Overload
| Nome | Descrizione |
|---|---|
| Export(ICollection<Assembly>) |
Trasforma i tipi contenuti nella raccolta specificata di assembly. |
| Export(ICollection<Type>) |
Trasforma i tipi contenuti nell'oggetto ICollection<T> passato a questo metodo. |
| Export(Type) |
Trasforma il tipo .NET specificato in uno schema XSD (XML Schema Definition Language). |
Commenti
Come procedura consigliata, usare uno degli CanExport overload per determinare se è possibile esportare il tipo o il set di tipi specificato.
Dopo aver chiamato il Export metodo , recuperare gli schemi dalla Schemas proprietà .
Export(ICollection<Assembly>)
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
Trasforma i tipi contenuti nella raccolta specificata di assembly.
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))
Parametri
- assemblies
- ICollection<Assembly>
Oggetto ICollection<T> (di Assembly) che contiene i tipi da esportare.
- Attributi
Eccezioni
L'argomento assemblies è null.
Un Assembly oggetto nella raccolta è null.
Si applica a
Export(ICollection<Type>)
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
Trasforma i tipi contenuti nell'oggetto ICollection<T> passato a questo metodo.
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))
Parametri
- types
- ICollection<Type>
Oggetto ICollection<T> (di Type) che contiene i tipi da esportare.
- Attributi
Eccezioni
L'argomento types è null.
Un tipo nella raccolta è null.
Si applica a
Export(Type)
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
- Origine:
- XsdDataContractExporter.cs
Trasforma il tipo .NET specificato in uno schema 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)
Parametri
- Attributi
Eccezioni
L'argomento type è null.
Commenti
Chiamare per CanExport determinare se il tipo può essere esportato. Dopo aver chiamato il Export metodo , lo schema può essere recuperato tramite la Schemas proprietà .