[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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.|
|GetHashCode||Serves as the default hash function. (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.)|
|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 Customize project tracking data, forms, workflow, and other objects. The XML schema for a work item type is described in Work Item Tracking: Index to XML Element Definitions.
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.