Share via


StringAssertAction Constructor (UITechnologyElement, String, String, StringAssertCondition, StringComparison)

Initializes a new instance of the StringAssertAction class.

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

Syntax

'Declaration
Public Sub New ( _
    uiElement As UITechnologyElement, _
    propertyName As String, _
    expectedValue As String, _
    propertyCondition As StringAssertCondition, _
    comparison As StringComparison _
)
public StringAssertAction(
    UITechnologyElement uiElement,
    string propertyName,
    string expectedValue,
    StringAssertCondition propertyCondition,
    StringComparison comparison
)
public:
StringAssertAction(
    UITechnologyElement^ uiElement, 
    String^ propertyName, 
    String^ expectedValue, 
    StringAssertCondition propertyCondition, 
    StringComparison comparison
)
new : 
        uiElement:UITechnologyElement * 
        propertyName:string * 
        expectedValue:string * 
        propertyCondition:StringAssertCondition * 
        comparison:StringComparison -> StringAssertAction
public function StringAssertAction(
    uiElement : UITechnologyElement, 
    propertyName : String, 
    expectedValue : String, 
    propertyCondition : StringAssertCondition, 
    comparison : StringComparison
)

Parameters

  • propertyName
    Type: String

    The name of the string property.

  • expectedValue
    Type: String
  • comparison
    Type: StringComparison

    A member of the StringComparison enumeration that specifies how strings are compared.

.NET Framework Security

See Also

Reference

StringAssertAction Class

StringAssertAction Overload

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

UITechnologyElement

StringAssertCondition

StringComparison