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
uiElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementA UITechnologyElement object.
propertyName
Type: StringThe name of the string property.
- expectedValue
Type: String
propertyCondition
Type: Microsoft.VisualStudio.TestTools.UITest.Common.StringAssertConditionA member of the StringAssertCondition enumeration that specifies the results of the assertion comparison.
comparison
Type: StringComparisonA member of the StringComparison enumeration that specifies how strings are compared.
.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.