WorkItem Members
Include Protected Members
Include Inherited Members
This class encapsulates a work item instance.
The WorkItem type exposes the following members.
Constructors
Name
Description
Initializes a blank work item of a specific WorkItemType.
Top
Methods
Name
Description
Overloaded.
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Serves as a hash function for a particular type. (Inherited from Object.)
Returns the next state per the action string.
Gets the type of the current instance. (Inherited from Object.)
true if this WorkItem is valid (all Fields, Links, and Attachments in this work item are valid); otherwise false.
Creates a shallow copy of the current Object. (Inherited from Object.)
Opens this WorkItem for editing.
Opens this WorkItem for editing without transferring all the data about the work item over the wire.
Reverts all changes that were made to this WorkItem since the last revision.
Saves this WorkItem after validating its contents.
Updates this WorkItem to the latest committed revision. All changes that were made to the work item from the last revision will be discarded.
Returns a string that represents the current object. (Inherited from Object.)
Validates the field values for this WorkItem against the rules that are defined for the work item type.
Top
Properties
Name
Description
Gets or sets the Area ID.
Gets or sets the Area Path.
Gets the count of attached files.
Gets collection of attachments associated with this work item.
Gets the name of the one who changed this work item.
Gets the date of this change.
Gets the name of the one who created this work item.
Gets the date this work item was created.
Gets the description of this work item.
Gets the form associated with this WorkItem.
Gets the count of external links.
Gets the collection of fields referenced by this work item.
Gets or sets the history of this work item.
Gets the count of hyperlinks.
Gets the ID of this work item. Returns zero for a new, unsaved item.
true if this work item has been edited in any way, including field or collection changes; otherwise false.
true if this work item is opened for editing; otherwise false.
true if the item is open for "partial" edit; otherwise false.
true if the item is open read-only; otherwise false.
Overloaded. Gets or sets the value of a field in this WorkItem by field name. The name passed in can be a field name, or a reference name.
Gets or sets the iteration ID.
Gets or sets the iteration path.
Gets the collection of outgoing links for this WorkItem.
Gets the node name for the work item.
Gets the team project to which this work item belongs.
Gets or sets the reason field for this work item.
Gets the count of related links to this work item.
Gets the revision of this work item.
Gets the revision date of this work item.
Gets current revision of this WorkItem.
Gets the collection of previous revisions to this WorkItem.
Gets the state of this work item.
Gets the WorkItemStore to which this WorkItem belongs.
Gets the title of this work item.
Gets the WorkItemType for the current WorkItem.
Gets the Uri of the current WorkItem.
Top
Events
Name
Description
Occurs every time a field is updated.
Top