AssertAction Constructor (UITechnologyElement, String, String, AssertCondition, Type)
Initializes a new instance of the AssertAction 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 AssertCondition, _
type As Type _
)
public AssertAction(
UITechnologyElement uiElement,
string propertyName,
string expectedValue,
AssertCondition propertyCondition,
Type type
)
public:
AssertAction(
UITechnologyElement^ uiElement,
String^ propertyName,
String^ expectedValue,
AssertCondition propertyCondition,
Type^ type
)
new :
uiElement:UITechnologyElement *
propertyName:string *
expectedValue:string *
propertyCondition:AssertCondition *
type:Type -> AssertAction
public function AssertAction(
uiElement : UITechnologyElement,
propertyName : String,
expectedValue : String,
propertyCondition : AssertCondition,
type : Type
)
Parameters
- uiElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
A UITechnologyElement.
- propertyName
Type: System.String
The name of the property.
- expectedValue
Type: System.String
The expected value of the property as a string.
- propertyCondition
Type: Microsoft.VisualStudio.TestTools.UITest.Common.AssertCondition
A member of the AssertCondition enumeration.
- type
Type: System.Type
A Type that indicates the type of the property value.
.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.