使用提供的元素、属性名和属性值初始化 ValidationAction 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
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 Sub New (
uiElement As UITechnologyElement,
propertyName As String,
expectedValue As String
)
参数
- uiElement
由 UITechnologyElement 对象表示的 UI 元素。
- propertyName
要验证的属性的名称。
- expectedValue
字符串形式的属性值。
请参阅
UITechnologyElement
ValidationAction 重载
ValidationAction 类
Microsoft.VisualStudio.TestTools.UITest.Common 命名空间
返回页首