ErrorAction 构造函数 (String, UITechnologyElement)

使用说明性消息和元素初始化 ErrorAction 类的新实例。

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

语法

声明
Public Sub New ( _
    message As String, _
    uiElement As UITechnologyElement _
)
public ErrorAction(
    string message,
    UITechnologyElement uiElement
)
public:
ErrorAction(
    String^ message, 
    UITechnologyElement^ uiElement
)
new : 
        message:string * 
        uiElement:UITechnologyElement -> ErrorAction
public function ErrorAction(
    message : String, 
    uiElement : UITechnologyElement
)

参数

.NET Framework 安全性

请参见

参考

ErrorAction 类

ErrorAction 重载

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