ErrorAction Constructor (String, UITechnologyElement)
Initializes a new instance of the ErrorAction class by using the descriptive message and element.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Common
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
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
)
Parameters
message
Type: StringThe description of the error.
uiElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementThe element where the error occurred.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.