Partager via


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: String

    The description of the error.

.NET Framework Security

See Also

Reference

ErrorAction Class

ErrorAction Overload

Microsoft.VisualStudio.TestTools.UITest.Common Namespace