This documentation is archived and is not being maintained.
WorkItemCollection Class
Visual Studio 2013
Represents a collection of work items that result from a query to the WorkItemStore.
System::Object
Microsoft.TeamFoundation.WorkItemTracking.Common::ReadOnlyList
Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItemCollection
Microsoft.TeamFoundation.WorkItemTracking.Common::ReadOnlyList
Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItemCollection
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
The WorkItemCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AsOf | Gets or sets the time that the query was executed in the local time zone. |
![]() | AsOfUTC | Gets or sets the time that the query was executed in UTC. |
![]() | Count | Gets the number of WorkItems in this collection. (Overrides ReadOnlyList::Count.) |
![]() | DefaultProjectHint | Gets or sets the Id of the Project to support in partial opening. |
![]() | DisplayFields | Gets a list of the WorkItemFieldDefinitions that will be paged from the server when a WorkItem in this collection is accessed. |
![]() | IsFixedSize | Obsolete. (Inherited from ReadOnlyList.) |
![]() | IsReadOnly | Obsolete. (Inherited from ReadOnlyList.) |
![]() | IsSynchronized | Obsolete. (Inherited from ReadOnlyList.) |
![]() | Item | Gets the WorkItem in this collection at the specified index. |
![]() | PageSize | Gets or sets the number of WorkItems that this collection will keep in cache from the server when a WorkItem that has not been cached is accessed. |
![]() | Query | Gets information about the query that resulted in this collection. |
![]() | SortFields | Gets a list of the SortFields that are associated with this collection. |
![]() | Store | Gets the WorkItemStore that is associated with this collection. |
![]() | SyncRoot | Obsolete. (Inherited from ReadOnlyList.) |
| Name | Description | |
|---|---|---|
![]() | Contains | Checks whether the specified WorkItem occurs in this collection. |
![]() | CopyTo | Obsolete. (Inherited from ReadOnlyList.) |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetEnumerator | (Inherited from ReadOnlyList.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf(Int32) | Gets the index of the WorkItem that has the specified ID. |
![]() | IndexOf(WorkItem) | Gets the index of a WorkItem in this collection. |
![]() | Resort | Sorts this collection based on the current contents of the SortFields property. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IList::Add | (Inherited from ReadOnlyList.) |
![]() ![]() | IList::Clear | (Inherited from ReadOnlyList.) |
![]() ![]() | IList::Contains | (Inherited from ReadOnlyList.) |
![]() ![]() | ICollection::CopyTo | (Inherited from ReadOnlyList.) |
![]() ![]() | ICollection::Count | (Inherited from ReadOnlyList.) |
![]() ![]() | IList::IndexOf | (Inherited from ReadOnlyList.) |
![]() ![]() | IList::Insert | (Inherited from ReadOnlyList.) |
![]() ![]() | IList::IsFixedSize | (Inherited from ReadOnlyList.) |
![]() ![]() | IList::IsReadOnly | (Inherited from ReadOnlyList.) |
![]() ![]() | ICollection::IsSynchronized | (Inherited from ReadOnlyList.) |
![]() ![]() | IList::Item | (Inherited from ReadOnlyList.) |
![]() ![]() | IList::Remove | (Inherited from ReadOnlyList.) |
![]() ![]() | IList::RemoveAt | (Inherited from ReadOnlyList.) |
![]() ![]() | ICollection::SyncRoot | (Inherited from ReadOnlyList.) |
A WorkItemCollection is returned by methods such as WorkItemStore::Query(String). The properties of a WorkItemCollection contain information about the query that resulted in this particular collection:
The time that the query was executed.
The query string that resulted in this collection.
Show:

