This documentation is archived and is not being maintained.

XsdDataContractExporter.Export Method

Transforms the common language runtime (CLR) type, or set of types, into a set of XML schemas.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Public method Export(ICollection<Assembly>) Transforms the types contained in the specified collection of assemblies.
Public method Export(ICollection<Type>) Transforms the types contained in the ICollection<T> passed to this method.
Public method Export(Type) Transforms the specified .NET Framework type into an XML schema definition language (XSD) schema.

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.