Share via


ValidationAction Constructor (UITechnologyElement, String, String)

Initializes a new instance of the ValidationAction class by using the provided element, property name, and property value.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Syntax

'Declaration
Protected Sub New ( _
    uiElement As UITechnologyElement, _
    propertyName As String, _
    expectedValue As String _
)
protected ValidationAction(
    UITechnologyElement uiElement,
    string propertyName,
    string expectedValue
)
protected:
ValidationAction(
    UITechnologyElement^ uiElement, 
    String^ propertyName, 
    String^ expectedValue
)
new : 
        uiElement:UITechnologyElement * 
        propertyName:string * 
        expectedValue:string -> ValidationAction
protected function ValidationAction(
    uiElement : UITechnologyElement, 
    propertyName : String, 
    expectedValue : String
)

Parameters

  • propertyName
    Type: String

    The name of the property to validate.

  • expectedValue
    Type: String

    The value of the property as a string.

.NET Framework Security

See Also

Reference

ValidationAction Class

ValidationAction Overload

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

UITechnologyElement