Represents a specific type of WorkItem.
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Thetype exposes the following members.
|Description||Gets a user-readable description of this work item type.|
|DisplayForm||Gets the URL of the display form for this work item type.|
|FieldDefinitions||Gets the collection of FieldDefinitions that belongs to this work item type.|
|Name||Gets the name of this work item type.|
|Project||Gets the Project to which this work item type belongs.|
|Store||Gets the WorkItemStore that contains this work item type.|
|Equals||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Export||Exports the work item type definition to XML.|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetNextState||Gets the next state of this work item type based on the current state and the specified action.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|NewWorkItem||Creates and returns a new WorkItem instance of this work item type.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|Validate(Project, String)||Validates this work item type in the context of the specified Project.|
|Validate(WorkItemStore, String)||Validates the work item type in the context of the specified WorkItemStore.|
|Validate(Project, String, String)||Validates the work item type in the context of the given Project and development method.|
|Validate(WorkItemStore, String, String)||Validates the work item type in the context of the specified WorkItemStore.|
More detail on work item types can be found in Customizing Project Tracking Data, Forms, Workflow, and Other Objects. The XML schema for a work item type is described in Index to XML Element Definitions for Types of Work Items.
Each WorkItem contains a reference to the WorkItemType that it implements. You must specify a WorkItemType when you construct a WorkItem through: WorkItem.WorkItem(WorkItemType). You can get the WorkItemType of a WorkItem through the WorkItem.Type property.
You can determine the rules that govern the fields of this work item type by exporting the work item type definition to XML and parsing the XML.
For more information about using this type, see Create a Work Item By Using the Client Object Model for Team Foundation.