TestParameterCollection 类

表示共享步骤集、测试用例或测试步骤中测试参数的集合。

继承层次结构

Object
  ReadOnlyCollection<ITestParameter>
    ReadOnlyObservableCollection<ITestParameter>
      Microsoft.TeamFoundation.TestManagement.Client.TestParameterCollection

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

语法

声明
Public Class TestParameterCollection _
    Inherits ReadOnlyObservableCollection(Of ITestParameter)
public class TestParameterCollection : ReadOnlyObservableCollection<ITestParameter>
public ref class TestParameterCollection : public ReadOnlyObservableCollection<ITestParameter^>
type TestParameterCollection =  
    class 
        inherit ReadOnlyObservableCollection<ITestParameter>
    end
public class TestParameterCollection extends ReadOnlyObservableCollection<ITestParameter>

TestParameterCollection 类型公开以下成员。

属性

  名称 说明
公共属性 Count 获取 ReadOnlyCollection 实例中包含的元素数。 (继承自 ReadOnlyCollection<ITestParameter>。)
公共属性 Item(Int32) 获取指定索引处的元素。 (继承自 ReadOnlyCollection<ITestParameter>。)
公共属性 Item[String] 获取集合中由给定参数名标识的一个测试参数。
受保护的属性 Items 返回 ReadOnlyCollection 包装的 IList。 (继承自 ReadOnlyCollection<ITestParameter>。)

页首

方法

  名称 说明
公共方法 Contains 确定某元素是否在 ReadOnlyCollection 中。 (继承自 ReadOnlyCollection<ITestParameter>。)
公共方法 ContainsKey 返回一个值,该值指示集合中是否存在一个具有所提供名称的参数。
公共方法 CopyTo 从目标数组的指定索引处开始将整个 ReadOnlyCollection 复制到兼容的一维 Array。 (继承自 ReadOnlyCollection<ITestParameter>。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 FromXml 从 XML 中读取此集合。
公共方法 GetEnumerator 返回循环访问 ReadOnlyCollection 的枚举数。 (继承自 ReadOnlyCollection<ITestParameter>。)
公共方法 GetHashCode 作为默认哈希函数。 (重写 Object.GetHashCode。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IndexOf 搜索指定的对象,并返回整个 ReadOnlyCollection 中第一个匹配项的从零开始的索引。 (继承自 ReadOnlyCollection<ITestParameter>。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnCollectionChanged 使用提供的参数引发 CollectionChanged 事件。 (继承自 ReadOnlyObservableCollection<ITestParameter>。)
受保护的方法 OnPropertyChanged 使用提供的参数引发 PropertyChanged 事件。 (继承自 ReadOnlyObservableCollection<ITestParameter>。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 ToXml 将此集合写入 XML。

页首

事件

  名称 说明
受保护的事件 CollectionChanged 在添加或移除项时发生。 (继承自 ReadOnlyObservableCollection<ITestParameter>。)
受保护的事件 PropertyChanged 在属性值更改时发生。 (继承自 ReadOnlyObservableCollection<ITestParameter>。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 System#Collections#Generic#ICollection{T}#Add 将某项添加到 ICollection 中。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#IList#Add 将某项添加到 IList 中。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#Generic#ICollection{T}#Clear ICollection 中移除所有项。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#IList#Clear IList 中移除所有项。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有事件 System#Collections#Specialized#INotifyCollectionChanged#CollectionChanged 当集合更改时发生。 (继承自 ReadOnlyObservableCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#IList#Contains 确定 IList 是否包含特定值。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#ICollection#CopyTo 从特定的 Array 索引处开始,将 ICollection 的元素复制到一个 Array 中。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#IEnumerable#GetEnumerator 返回循环访问集合的枚举数。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#IList#IndexOf 确定 IList 中特定项的索引。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#Generic#IList{T}#Insert 将一个项插入指定索引处的 IList。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#IList#Insert 将一个项插入指定索引处的 IList。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有属性 System#Collections#IList#IsFixedSize 获取一个值,该值指示 IList 是否具有固定大小。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有属性 System#Collections#Generic#ICollection{T}#IsReadOnly 获取一个值,该值指示 ICollection 是否为只读。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有属性 System#Collections#IList#IsReadOnly 获取一个值,该值指示 IList 是否为只读。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有属性 System#Collections#ICollection#IsSynchronized 获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有属性 System#Collections#Generic#IList{T}#Item 获取指定索引处的元素。如果您尝试设置指定索引处的项,则会发生 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有属性 System#Collections#IList#Item 获取指定索引处的元素。如果您尝试设置指定索引处的项,则会发生 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有事件 System#ComponentModel#INotifyPropertyChanged#PropertyChanged 在属性值更改时发生。 (继承自 ReadOnlyObservableCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#Generic#ICollection{T}#Remove ICollection 中移除特定对象的第一个匹配项。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#IList#Remove IList 中移除特定对象的第一个匹配项。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#Generic#IList{T}#RemoveAt 移除指定索引处的 IList 项。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有方法 System#Collections#IList#RemoveAt 移除指定索引处的 IList 项。此实现总是引发 NotSupportedException。 (继承自 ReadOnlyCollection<ITestParameter>。)
显式接口实现私有属性 System#Collections#ICollection#SyncRoot 获取可用于同步对 ICollection 的访问的对象。 (继承自 ReadOnlyCollection<ITestParameter>。)

页首

备注

不能修改该集合,但可以修改其内部参数。

线程安全

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

请参阅

参考

Microsoft.TeamFoundation.TestManagement.Client 命名空间

ReadOnlyObservableCollection