WorkItemCollection 类

表示的工作项的集合由查询添加到 WorkItemStore

继承层次结构

System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Common.ReadOnlyList
    Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemCollection

命名空间:  Microsoft.TeamFoundation.WorkItemTracking.Client
程序集:  Microsoft.TeamFoundation.WorkItemTracking.Client(在 Microsoft.TeamFoundation.WorkItemTracking.Client.dll 中)

语法

声明
Public NotInheritable Class WorkItemCollection _
    Inherits ReadOnlyList
public sealed class WorkItemCollection : ReadOnlyList

WorkItemCollection 类型公开以下成员。

构造函数

  名称 说明
公共方法 WorkItemCollection

页首

属性

  名称 说明
公共属性 AsOf 获取或设置时查询在本地时区已执行。
公共属性 AsOfUTC 获取或设置时查询 UTC 已执行。
公共属性 Count 获取 WorkItem中的数字此集合中。 (重写 ReadOnlyList.Count。)
公共属性 DefaultProjectHint 在部分开始获取或设置 ProjectId 支持。
公共属性 DisplayFields 获取从服务器上调用 WorkItemFieldDefinition中的列表,在该集合中的 WorkItem 访问时。
公共属性 IsFixedSize 已过时。 (继承自 ReadOnlyList。)
公共属性 IsReadOnly 已过时。 (继承自 ReadOnlyList。)
公共属性 IsSynchronized 已过时。 (继承自 ReadOnlyList。)
公共属性 Item 获取此集合的 WorkItem 在指定的 index。
公共属性 PageSize 获取或设置此集合中尚未缓存时的服务器上缓存将保留 WorkItem中的一个数字,在 WorkItem 访问。
公共属性 Query 获取有关导致此集合的查询的信息。
公共属性 SortFields 获取 SortField与此集合的列表。
公共属性 Store 获取与此集合的 WorkItemStore
公共属性 SyncRoot 已过时。 (继承自 ReadOnlyList。)

页首

方法

  名称 说明
公共方法 Contains 检查指定的 WorkItem 是否位于集合发生。
公共方法 CopyTo 已过时。 (继承自 ReadOnlyList。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 GetEnumerator (继承自 ReadOnlyList。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetId
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IndexOf(Int32) 获取具有指定的 ID. WorkItem 的索引
公共方法 IndexOf(WorkItem) 获取 WorkItem 的索引此集合中。
公共方法 Resort 方法对 SortFields 属性的当前内容的此集合。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IList.Add (继承自 ReadOnlyList。)
显式接口实现私有方法 IList.Clear (继承自 ReadOnlyList。)
显式接口实现私有方法 IList.Contains (继承自 ReadOnlyList。)
显式接口实现私有方法 ICollection.CopyTo (继承自 ReadOnlyList。)
显式接口实现私有属性 ICollection.Count (继承自 ReadOnlyList。)
显式接口实现私有方法 IList.IndexOf (继承自 ReadOnlyList。)
显式接口实现私有方法 IList.Insert (继承自 ReadOnlyList。)
显式接口实现私有属性 IList.IsFixedSize (继承自 ReadOnlyList。)
显式接口实现私有属性 IList.IsReadOnly (继承自 ReadOnlyList。)
显式接口实现私有属性 ICollection.IsSynchronized (继承自 ReadOnlyList。)
显式接口实现私有属性 IList.Item (继承自 ReadOnlyList。)
显式接口实现私有方法 IList.Remove (继承自 ReadOnlyList。)
显式接口实现私有方法 IList.RemoveAt (继承自 ReadOnlyList。)
显式接口实现私有属性 ICollection.SyncRoot (继承自 ReadOnlyList。)

页首

备注

WorkItemCollection 使用方法返回例如 WorkItemStore.Query(String)。 WorkItemCollection 的属性包含有关导致此特殊集合查询的信息:

  • 时间查询已执行。

  • 导致此集合的查询字符串。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.TeamFoundation.WorkItemTracking.Client 命名空间