Editare

Partajați prin


XsdDataContractExporter.Export Method

Definition

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

Transforms the types contained in the specified collection of assemblies.

public:
 void Export(System::Collections::Generic::ICollection<System::Reflection::Assembly ^> ^ assemblies);
public void Export (System.Collections.Generic.ICollection<System.Reflection.Assembly> assemblies);
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.

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

Transforms the types contained in the ICollection<T> passed to this method.

public:
 void Export(System::Collections::Generic::ICollection<Type ^> ^ types);
public void Export (System.Collections.Generic.ICollection<Type> types);
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.

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

Transforms the specified .NET Framework type into an XML schema definition language (XSD) schema.

public:
 void Export(Type ^ type);
public void Export (Type type);
member this.Export : Type -> unit
Public Sub Export (type As Type)

Parameters

type
Type

The Type to transform into an XML schema.

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.

Applies to