TransactionTimer 类

表示 Web 性能测试中的计时事务。 此部分 Web 测试可能包括 Web 性能测试请求、对所包含 Web 性能测试的调用,或其他 Web 性能测试事务。

继承层次结构

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestItem
    Microsoft.VisualStudio.TestTools.WebTesting.TransactionTimer

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
<SerializableAttribute> _
Public Class TransactionTimer _
    Inherits WebTestItem
[SerializableAttribute]
public class TransactionTimer : WebTestItem
[SerializableAttribute]
public ref class TransactionTimer : public WebTestItem
[<SerializableAttribute>]
type TransactionTimer =  
    class
        inherit WebTestItem
    end
public class TransactionTimer extends WebTestItem

TransactionTimer 类型公开以下成员。

构造函数

  名称 说明
公共方法 TransactionTimer 初始化 TransactionTimer 类的新实例。

页首

属性

  名称 说明
公共属性 ItemId Web 性能测试中的项的从零开始的序列号。 (继承自 WebTestItem。)
公共属性 Items 获取 Web 性能测试项包含定时事务的列表。
公共属性 Name 获取或设置 TransactionTimer 的给定名称。此名称显示在 Web 性能测试编辑器中,或者显示在 Web 性能测试的编码 Web 性能测试和负载测试结果中。

页首

方法

  名称 说明
公共方法 Clone 创建 TransactionTimer 的副本。 (重写 WebTestItem.Clone()。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 RuntimeClone (重写 WebTestItem.RuntimeClone()。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

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

请参见

参考

Microsoft.VisualStudio.TestTools.WebTesting 命名空间