ITestPlanCollection 接口

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

表示测试计划的集合。

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

语法

声明
Public Interface ITestPlanCollection _
    Inherits ITestObjectCollection(Of ITestPlan), IList(Of ITestPlan),  _
    ICollection(Of ITestPlan), IEnumerable(Of ITestPlan), IEnumerable,  _
    INotifyCollectionChanged, INotifyPropertyChanged
public interface ITestPlanCollection : ITestObjectCollection<ITestPlan>, 
    IList<ITestPlan>, ICollection<ITestPlan>, IEnumerable<ITestPlan>, 
    IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
public interface class ITestPlanCollection : ITestObjectCollection<ITestPlan^>, 
    IList<ITestPlan^>, ICollection<ITestPlan^>, IEnumerable<ITestPlan^>, 
    IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
type ITestPlanCollection =  
    interface
        interface ITestObjectCollection<ITestPlan>
        interface IList<ITestPlan>
        interface ICollection<ITestPlan>
        interface IEnumerable<ITestPlan>
        interface IEnumerable
        interface INotifyCollectionChanged
        interface INotifyPropertyChanged
    end
public interface ITestPlanCollection extends ITestObjectCollection<ITestPlan>, IList<ITestPlan>, ICollection<ITestPlan>, IEnumerable<ITestPlan>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

ITestPlanCollection 类型公开以下成员。

属性

  名称 说明
公共属性 Count 获取 ICollection<T> 中包含的元素数。 (继承自 ICollection<ITestPlan>。)
公共属性 IsReadOnly 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 ICollection<ITestPlan>。)
公共属性 Item 获取或设置位于指定索引处的元素。 (继承自 IList<ITestPlan>。)
公共属性 QueryText 获取或设置用于填充测试计划层次结构的默认查询。这包括测试运行和测试点。
公共属性 SyncRoot 获取可用于同步对集合的访问的对象。 (继承自 ITestObjectCollection<TObjectInterface>。)

页首

方法

  名称 说明
公共方法 Add 将某项添加到 ICollection<T> 中。 (继承自 ICollection<ITestPlan>。)
公共方法 Clear ICollection<T> 中移除所有项。 (继承自 ICollection<ITestPlan>。)
公共方法 Contains 确定 ICollection<T> 是否包含特定值。 (继承自 ICollection<ITestPlan>。)
公共方法 CopyTo 从特定的 Array 索引开始,将 ICollection<T> 的元素复制到一个 Array 中。 (继承自 ICollection<ITestPlan>。)
公共方法 GetEnumerator 返回一个循环访问集合的枚举器。 (继承自 IEnumerable<ITestPlan>。)
公共方法 IndexOf 确定 IList<T> 中特定项的索引。 (继承自 IList<ITestPlan>。)
公共方法 Insert 将一个项插入指定索引处的 IList<T>。 (继承自 IList<ITestPlan>。)
公共方法 Move 将集合的项从一个位置移到另一个位置。 (继承自 ITestObjectCollection<TObjectInterface>。)
公共方法 Refresh 依据服务器刷新此集合内所有计划中的数据。
公共方法 RefreshStatistics 刷新此集合中所有计划、测试运行和测试计划的相关统计信息。
公共方法 Remove ICollection<T> 中移除特定对象的第一个匹配项。 (继承自 ICollection<ITestPlan>。)
公共方法 RemoveAt 移除指定索引处的 IList<T> 项。 (继承自 IList<ITestPlan>。)

页首

事件

  名称 说明
公共事件 CollectionChanged 当集合更改时发生。 (继承自 INotifyCollectionChanged。)
公共事件 PropertyChanged 在更改属性值时发生。 (继承自 INotifyPropertyChanged。)

页首

备注

可以添加或删除测试计划,但当删除一个计划时,它的所有测试运行和测试点也会被删除。

请参见

参考

Microsoft.TeamFoundation.TestManagement.Client 命名空间

ITestObjectCollection<TObjectInterface>

ITestPlan

ITestPoint

ITestRun

INotifyCollectionChanged

INotifyPropertyChanged