表示测试用例的容器。
命名空间:  Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)
语法
声明
Public Interface ITestCaseCollection _
    Inherits ITestObjectCollection(Of ITestCase), IList(Of ITestCase),  _
    ICollection(Of ITestCase), IEnumerable(Of ITestCase), IEnumerable,  _
    INotifyCollectionChanged, INotifyPropertyChanged
public interface ITestCaseCollection : ITestObjectCollection<ITestCase>, 
    IList<ITestCase>, ICollection<ITestCase>, IEnumerable<ITestCase>, 
    IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
public interface class ITestCaseCollection : ITestObjectCollection<ITestCase^>, 
    IList<ITestCase^>, ICollection<ITestCase^>, IEnumerable<ITestCase^>, 
    IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
type ITestCaseCollection =  
    interface
        interface ITestObjectCollection<ITestCase>
        interface IList<ITestCase>
        interface ICollection<ITestCase>
        interface IEnumerable<ITestCase>
        interface IEnumerable
        interface INotifyCollectionChanged
        interface INotifyPropertyChanged
    end
public interface ITestCaseCollection extends ITestObjectCollection<ITestCase>, IList<ITestCase>, ICollection<ITestCase>, IEnumerable<ITestCase>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
ITestCaseCollection 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | Count | 获取 ICollection<T> 中包含的元素数。 (继承自 ICollection<ITestCase>。) | 
| .gif) | IsReadOnly | 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 ICollection<ITestCase>。) | 
| .gif) | Item | 获取或设置指定索引处的元素。 (继承自 IList<ITestCase>。) | 
| .gif) | SyncRoot | 获取可用于同步对集合的访问的对象。 (继承自 ITestObjectCollection<TObjectInterface>。) | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | Add | 将某项添加到 ICollection<T> 中。 (继承自 ICollection<ITestCase>。) | 
| .gif) | Clear | 从 ICollection<T> 中移除所有项。 (继承自 ICollection<ITestCase>。) | 
| .gif) | Contains | 确定 ICollection<T> 是否包含特定值。 (继承自 ICollection<ITestCase>。) | 
| .gif) | CopyTo | 从特定的 Array 索引处开始,将 ICollection<T> 的元素复制到一个 Array 中。 (继承自 ICollection<ITestCase>。) | 
| .gif) | GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable<ITestCase>。) | 
| .gif) | GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。) | 
| .gif) | IndexOf | 确定 IList<T> 中特定项的索引。 (继承自 IList<ITestCase>。) | 
| .gif) | Insert | 将一个项插入指定索引处的 IList<T>。 (继承自 IList<ITestCase>。) | 
| .gif) | Move | 将集合的项从一个位置移到另一个位置。 (继承自 ITestObjectCollection<TObjectInterface>。) | 
| .gif) | Remove | 从 ICollection<T> 中移除特定对象的第一个匹配项。 (继承自 ICollection<ITestCase>。) | 
| .gif) | RemoveAt | 移除指定索引处的 IList<T> 项。 (继承自 IList<ITestCase>。) | 
页首
事件
| 名称 | 说明 | |
|---|---|---|
| .gif) | CollectionChanged | 当集合更改时发生。 (继承自 INotifyCollectionChanged。) | 
| .gif) | PropertyChanged | 在更改属性值时发生。 (继承自 INotifyPropertyChanged。) | 
页首
示例
ITestObjectCollection<TObjectInterface>