FieldCollection 类

表示 Fields 的集合。WorkItem 对象的。

继承层次结构

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

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

语法

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

FieldCollection 类型公开以下成员。

属性

  名称 说明
公共属性 Count 获取此集合中 Field 对象的数目。 (重写 ReadOnlyList.Count。)
公共属性 IsFixedSize 已废弃不用。 (继承自 ReadOnlyList。)
公共属性 IsReadOnly 已废弃不用。 (继承自 ReadOnlyList。)
公共属性 IsSynchronized 已废弃不用。 (继承自 ReadOnlyList。)
公共属性 Item[Int32] 获取此集合的 Field 位于指定索引处。
公共属性 Item[String] 获取在具有指定的名称或引用名称的此集合的 Field
公共属性 Item[CoreField] 获取在指定的 CoreField 成员的此集合的 Field
公共属性 SyncRoot 已废弃不用。 (继承自 ReadOnlyList。)

页首

方法

  名称 说明
公共方法 Contains(Int32) 通过按 ID. 指定的此集合是否包含 Field
公共方法 Contains(String) 选定的名称或引用名称指定的此集合是否包含 Field
公共方法 Contains(Field) 选定此集合是否包含指定的 Field
公共方法 CopyTo 已废弃不用。 (继承自 ReadOnlyList。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 GetById 获取在具有指定 ID 的 . 的此集合的 Field
公共方法 GetEnumerator (继承自 ReadOnlyList。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IndexOf 获取指定的 Field 的索引。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 TryGetById 获取在具有指定 ID 的 . 的此集合的 Field

页首

显式接口实现  

  名称 说明
显式接口实现私有方法 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。)

页首

备注

FieldCollection WorkItem.Fields 对象由属性返回。

线程安全

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

请参阅

参考

Microsoft.TeamFoundation.WorkItemTracking.Client 命名空间