XsdDataContractExporter.Export Metod

Definition

Omvandlar CLR-typen (Common Language Runtime) eller en uppsättning typer till en uppsättning XML-scheman.

Överlagringar

Name Description
Export(ICollection<Assembly>)

Transformerar de typer som finns i den angivna samlingen sammansättningar.

Export(ICollection<Type>)

Transformerar de typer som finns i den ICollection<T> som skickas till den här metoden.

Export(Type)

Omvandlar den angivna .NET typen till ett XSD-schema (XML-schemadefinitionsspråk).

Kommentarer

Vi rekommenderar att du använder en av överlagringarna CanExport för att avgöra om den angivna typen eller uppsättningen av typer kan exporteras.

När du har anropat Export metoden hämtar du scheman från egenskapen Schemas .

Export(ICollection<Assembly>)

Transformerar de typer som finns i den angivna samlingen sammansättningar.

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

Parametrar

assemblies
ICollection<Assembly>

En ICollection<T> (av Assembly) som innehåller de typer som ska exporteras.

Undantag

Argumentet assemblies är null.

En Assembly i samlingen är null.

Gäller för

Export(ICollection<Type>)

Transformerar de typer som finns i den ICollection<T> som skickas till den här metoden.

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

Parametrar

types
ICollection<Type>

En ICollection<T> (av Type) som innehåller de typer som ska exporteras.

Undantag

Argumentet types är null.

En typ i samlingen är null.

Gäller för

Export(Type)

Omvandlar den angivna .NET typen till ett XSD-schema (XML-schemadefinitionsspråk).

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

Parametrar

type
Type

Att Type omvandla till ett XML-schema.

Undantag

Argumentet type är null.

Kommentarer

Anropa för CanExport att avgöra om typen kan exporteras. När du har anropat Export metoden kan schemat hämtas via egenskapen Schemas .

Gäller för