CustomNotificationEventArgs 类

提供自定义诊断数据适配器中所用事件参数类的基类。

继承层次结构

System.Object
  System.EventArgs
    Microsoft.VisualStudio.TestTools.Execution.DataCollectionEventArgs
      Microsoft.VisualStudio.TestTools.Execution.CustomNotificationEventArgs

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

语法

声明
<SerializableAttribute> _
Public MustInherit Class CustomNotificationEventArgs _
    Inherits DataCollectionEventArgs
[SerializableAttribute]
public abstract class CustomNotificationEventArgs : DataCollectionEventArgs
[SerializableAttribute]
public ref class CustomNotificationEventArgs abstract : public DataCollectionEventArgs
[<AbstractClass>]
[<SerializableAttribute>]
type CustomNotificationEventArgs =  
    class
        inherit DataCollectionEventArgs
    end
public abstract class CustomNotificationEventArgs extends DataCollectionEventArgs

CustomNotificationEventArgs 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 CustomNotificationEventArgs() 初始化 CustomNotificationEventArgs 类的新实例,以便发送测试会话的自定义通知。
受保护的方法 CustomNotificationEventArgs(TestExecId) 初始化 CustomNotificationEventArgs 类的新实例,以便使用提供的测试执行 ID 发送测试用例的自定义通知。

页首

属性

  名称 说明
公共属性 Context 获取或设置事件的上下文信息。 (继承自 DataCollectionEventArgs。)

页首

方法

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

页首

线程安全

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

请参见

参考

Microsoft.VisualStudio.TestTools.Execution 命名空间

其他资源

创建诊断数据适配器以收集自定义数据或影响测试计算机