TestActionCollection 类

 

提供测试操作的有序列表,在该列表中操作按执行顺序存储。

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

继承层次结构

System.Object
  System.Collections.ObjectModel.Collection<T>
    System.Collections.ObjectModel.ObservableCollection<T>
      Microsoft.TeamFoundation.TestManagement.Client.TestActionCollection

语法

public class TestActionCollection : ObservableCollection<ITestAction>
public ref class TestActionCollection : ObservableCollection<ITestAction^>
type TestActionCollection = 
    class
        inherit ObservableCollection<ITestAction>
    end
Public Class TestActionCollection
    Inherits ObservableCollection(Of ITestAction)

属性

名称 说明
System_CAPS_pubproperty Count

(从 Collection<T> 继承。)

System_CAPS_pubproperty Item[Int32]

(从 Collection<T> 继承。)

System_CAPS_protproperty Items

(从 Collection<T> 继承。)

方法

名称 说明
System_CAPS_pubmethod Add(T)

(从 Collection<T> 继承。)

System_CAPS_protmethod BlockReentrancy()

(从 ObservableCollection<T> 继承。)

System_CAPS_protmethod CheckReentrancy()

(从 ObservableCollection<T> 继承。)

System_CAPS_pubmethod Clear()

(从 Collection<T> 继承。)

System_CAPS_protmethod ClearItems()

(替代 ObservableCollection<T>.ClearItems()。)

System_CAPS_pubmethod Contains(T)

(从 Collection<T> 继承。)

System_CAPS_pubmethod CopyTo(T[], Int32)

(从 Collection<T> 继承。)

System_CAPS_pubmethod Equals(Object)

(从 Object 继承。)

System_CAPS_protmethod Finalize()

(从 Object 继承。)

System_CAPS_pubmethod GetEnumerator()

(从 Collection<T> 继承。)

System_CAPS_pubmethod GetHashCode()

(替代 Object.GetHashCode()。)

System_CAPS_pubmethod GetType()

(从 Object 继承。)

System_CAPS_pubmethod IndexOf(T)

(从 Collection<T> 继承。)

System_CAPS_pubmethod IndexOf(Int32)

搜索指定的测试操作,返回整个集合中第一个匹配项的从零开始的索引。

System_CAPS_pubmethod Insert(Int32, T)

(从 Collection<T> 继承。)

System_CAPS_protmethod InsertItem(Int32, ITestAction)

将提供的测试操作插入到集合中的指定索引处。(替代 ObservableCollection<T>.InsertItem(Int32, T)。)

System_CAPS_protmethod MemberwiseClone()

(从 Object 继承。)

System_CAPS_pubmethod Move(Int32, Int32)

(从 ObservableCollection<T> 继承。)

System_CAPS_protmethod MoveItem(Int32, Int32)

(替代 ObservableCollection<T>.MoveItem(Int32, Int32)。)

System_CAPS_pubmethod MoveTo(Int32, Int32, TestActionCollection)

将测试操作从一个集合移动到另一个集合。

System_CAPS_protmethod OnCollectionChanged(NotifyCollectionChangedEventArgs)

(从 ObservableCollection<T> 继承。)

System_CAPS_protmethod OnPropertyChanged(PropertyChangedEventArgs)

(从 ObservableCollection<T> 继承。)

System_CAPS_pubmethod Remove(T)

(从 Collection<T> 继承。)

System_CAPS_pubmethod RemoveAt(Int32)

(从 Collection<T> 继承。)

System_CAPS_protmethod RemoveItem(Int32)

(替代 ObservableCollection<T>.RemoveItem(Int32)。)

System_CAPS_protmethod SetItem(Int32, ITestAction)

使用提供的测试操作替换指定索引处的测试操作。(替代 ObservableCollection<T>.SetItem(Int32, T)。)

System_CAPS_pubmethod ToString()

(从 Object 继承。)

事件

名称 说明
System_CAPS_pubevent CollectionChanged

(从 ObservableCollection<T> 继承。)

System_CAPS_protevent PropertyChanged

(从 ObservableCollection<T> 继承。)

显式接口实现

名称 说明
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection.CopyTo(Array, Int32)

(从 Collection<T> 继承。)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

(从 Collection<T> 继承。)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Add(Object)

(从 Collection<T> 继承。)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Contains(Object)

(从 Collection<T> 继承。)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.IndexOf(Object)

(从 Collection<T> 继承。)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Insert(Int32, Object)

(从 Collection<T> 继承。)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Remove(Object)

(从 Collection<T> 继承。)

线程安全

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

请参阅

ObservableCollection<T>
ITestAction
Microsoft.TeamFoundation.TestManagement.Client 命名空间

返回页首