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
)
参数
- message
类型:System.String
关于错误的说明。
- uiElement
类型:Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
在其中发生错误的元素。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。