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