UITestWarningEventArgs 类

 

为处理 UITestAction 期间出现的警告异常提供事件参数。

命名空间:   Microsoft.VisualStudio.TestTools.UITest.Common
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

继承层次结构

System.Object
  System.EventArgs
    Microsoft.VisualStudio.TestTools.UITest.Common.UITestActionEventArgs
      Microsoft.VisualStudio.TestTools.UITest.Common.UITestWarningEventArgs

语法

public class UITestWarningEventArgs : UITestActionEventArgs
public ref class UITestWarningEventArgs : UITestActionEventArgs
type UITestWarningEventArgs = 
    class
        inherit UITestActionEventArgs
    end
Public Class UITestWarningEventArgs
    Inherits UITestActionEventArgs

构造函数

名称 说明
System_CAPS_pubmethod UITestWarningEventArgs(UITestAction, Exception, String)

初始化 UITestWarningEventArgs 类的新实例。

属性

名称 说明
System_CAPS_pubproperty Action

获取关联的 UITestAction 对象。(从 UITestActionEventArgs 继承。)

System_CAPS_pubproperty Error

获取此事件的关联异常。

System_CAPS_pubproperty WarningMessage

获取或设置警告消息的文本。

方法

名称 说明
System_CAPS_pubmethod Equals(Object)

(从 Object 继承。)

System_CAPS_protmethod Finalize()

(从 Object 继承。)

System_CAPS_pubmethod GetHashCode()

(从 Object 继承。)

System_CAPS_pubmethod GetType()

(从 Object 继承。)

System_CAPS_protmethod MemberwiseClone()

(从 Object 继承。)

System_CAPS_pubmethod ToString()

(从 Object 继承。)

线程安全

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

请参阅

UITestAction
Microsoft.VisualStudio.TestTools.UITest.Common 命名空间

返回页首