ITestPlanCollection Interface

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Represents a collection of test plans.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
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

The ITestPlanCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the ICollection<T>. (Inherited from ICollection<ITestPlan>.)
Public property IsReadOnly Gets a value indicating whether the ICollection<T> is read-only. (Inherited from ICollection<ITestPlan>.)
Public property Item Gets or sets the element at the specified index. (Inherited from IList<ITestPlan>.)
Public property QueryText Gets or sets the default query that is used to populate the test plan hierarchy. This includes test runs and test points.
Public property SyncRoot Gets an object that can be used to synchronize access to the collection. (Inherited from ITestObjectCollection<TObjectInterface>.)

Top

Methods

  Name Description
Public method Add Adds an item to the ICollection<T>. (Inherited from ICollection<ITestPlan>.)
Public method Clear Removes all items from the ICollection<T>. (Inherited from ICollection<ITestPlan>.)
Public method Contains Determines whether the ICollection<T> contains a specific value. (Inherited from ICollection<ITestPlan>.)
Public method CopyTo Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. (Inherited from ICollection<ITestPlan>.)
Public method GetEnumerator() Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<ITestPlan>.)
Public method GetEnumerator() Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public method IndexOf Determines the index of a specific item in the IList<T>. (Inherited from IList<ITestPlan>.)
Public method Insert Inserts an item to the IList<T> at the specified index. (Inherited from IList<ITestPlan>.)
Public method Move Moves the item of the collection from one position to another. (Inherited from ITestObjectCollection<TObjectInterface>.)
Public method Refresh Refreshes the data in all plans in this collection from the server.
Public method RefreshStatistics Refreshes the statistics on all plans, test runs, and test plans in this collection.
Public method Remove Removes the first occurrence of a specific object from the ICollection<T>. (Inherited from ICollection<ITestPlan>.)
Public method RemoveAt Removes the IList<T> item at the specified index. (Inherited from IList<ITestPlan>.)

Top

Events

  Name Description
Public event CollectionChanged Occurs when the collection changes. (Inherited from INotifyCollectionChanged.)
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

Remarks

Test plans may be added or deleted, but when a plan is deleted, all its test runs and test points are also deleted.

See Also

Reference

Microsoft.TeamFoundation.TestManagement.Client Namespace

ITestObjectCollection<TObjectInterface>

ITestPlan

ITestPoint

ITestRun

INotifyCollectionChanged

INotifyPropertyChanged