ValidationAction 构造函数 (UITechnologyElement, String, String)

使用提供的元素、属性名和属性值初始化 ValidationAction 类的新实例。

命名空间:  Microsoft.VisualStudio.TestTools.UITest.Common
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

语法

声明
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
)

参数

  • propertyName
    类型:System.String
    要验证的属性的名称。

.NET Framework 安全性

请参见

参考

ValidationAction 类

ValidationAction 重载

Microsoft.VisualStudio.TestTools.UITest.Common 命名空间

UITechnologyElement