XsdTypeImporterTask Class

Custom MSBuild task used to generate CLR types from XML schemas

Inheritance Hierarchy

System.Object
  Microsoft.Build.Utilities.Task
    Microsoft.Build.Tasks.Xsd.XsdTypeImporterTask

Namespace:  Microsoft.Build.Tasks.Xsd
Assembly:  XsdBuildTask (in XsdBuildTask.dll)

Syntax

'Declaration
Public Class XsdTypeImporterTask _
    Inherits Task
public class XsdTypeImporterTask : Task
public ref class XsdTypeImporterTask : public Task
type XsdTypeImporterTask =  
    class 
        inherit Task 
    end
public class XsdTypeImporterTask extends Task

The XsdTypeImporterTask type exposes the following members.

Constructors

  Name Description
Public method XsdTypeImporterTask Initializes a new instance of the XsdTypeImporterTask class.

Top

Properties

  Name Description
Public property BuildEngine Gets or sets the instance of the IBuildEngine object used by the task. (Inherited from Task.)
Public property BuildEngine2 Gets the instance of the IBuildEngine2 object used by the task. (Inherited from Task.)
Public property BuildEngine3 Gets the instance of the IBuildEngine3 object used by the task. (Inherited from Task.)
Public property BuildEngine4 Gets the instance of the IBuildEngine4 object used by the task. (Inherited from Task.)
Public property CollectionTypes Gets or sets the fully qualified or assembly qualified names of the types to be used as collection data types.
Public property EnableDataBinding Gets or sets a value indicating whether the data binding for XSD type importer task is enabled.
Public property ExcludedTypes Gets or sets the excluded types for the XSD type importer task.
Public property GenerateInternalTypes Gets or sets a value indicating whether to generate classes that are marked as internal.
Public property GenerateSerializableTypes Gets or sets a value indicating whether to generate classes marked with [Serializable] Attribute.
Protected property HelpKeywordPrefix Gets or sets the prefix used to compose Help keywords from resource names. (Inherited from Task.)
Public property HostObject Gets or sets the host object associated with the task. (Inherited from Task.)
Public property ImportXmlTypes Gets or sets a value indicating whether to configure the DataContractSerializer to import non-DataContract types as IXmlSerializable.
Public property InputXsdFiles Gets or sets the input XML schema files.
Public property Language Gets or sets the programming language to use for code generation.
Public property Log Gets an instance of a TaskLoggingHelper class containing task logging methods. (Inherited from Task.)
Public property NamespaceMappings Gets or sets the mappings from XML schema target Namespace to CLR namespace.
Public property OutputDirectory Gets or sets the output directory.
Public property OutputFile Gets the output file containing the generated types.
Public property References Gets or sets the full path to assemblies that will be loaded for data contract type reuse.
Public property SerializerMode Gets or sets the serialization mode.
Public property SupportFx35DataTypes Gets or sets a value indicating whether to support typed datasets from .NET Framework 3.5.
Protected property TaskResources Gets or sets the culture-specific resources associated with the task. (Inherited from Task.)

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Execute Indicates whether the XML Schema definition type importer task executes. (Overrides Task.Execute().)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Version Information

.NET Framework

Supported in: 4.6, 4.5

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Build.Tasks.Xsd Namespace