XsdDataContractExporter.Export Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Transforms the common language runtime (CLR) type, or set of types, into a set of XML schemas.
Overloads
| Export(ICollection<Assembly>) |
Transforms the types contained in the specified collection of assemblies. |
| Export(ICollection<Type>) |
Transforms the types contained in the ICollection<T> passed to this method. |
| Export(Type) |
Transforms the specified .NET type into an XML schema definition language (XSD) schema. |
Remarks
As a recommended practice, use one of the CanExport overloads to determine whether the specified type or set of types can be exported.
After calling the Export method, retrieve the schemas from the Schemas property.
Export(ICollection<Assembly>)
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
Transforms the types contained in the specified collection of 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))
Parameters
- assemblies
- ICollection<Assembly>
A ICollection<T> (of Assembly) that contains the types to export.
- Attributes
Exceptions
The assemblies argument is null.
An Assembly in the collection is null.
Applies to
Export(ICollection<Type>)
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
Transforms the types contained in the ICollection<T> passed to this method.
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))
Parameters
- types
- ICollection<Type>
A ICollection<T> (of Type) that contains the types to export.
- Attributes
Exceptions
The types argument is null.
A type in the collection is null.
Applies to
Export(Type)
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
- Source:
- XsdDataContractExporter.cs
Transforms the specified .NET type into an XML schema definition language (XSD) schema.
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)
Parameters
- Attributes
Exceptions
The type argument is null.
Remarks
Call the CanExport to determine whether the type can be exported. After calling the Export method, the schema can be retrieved through the Schemas property.