UITestPropertyProvider.GetPropertyForControlState 方法

当在派生类中重写时,返回一个属性名称数组和一个状态值数组,其中状态值数组由给定控件的所有与指定控件状态值匹配的状态值组成。

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

语法

声明
Public MustOverride Function GetPropertyForControlState ( _
    uiTestControl As UITestControl, _
    uiState As ControlStates, _
    <OutAttribute> ByRef stateValues As Boolean() _
) As String()
public abstract string[] GetPropertyForControlState(
    UITestControl uiTestControl,
    ControlStates uiState,
    out bool[] stateValues
)
public:
virtual array<String^>^ GetPropertyForControlState(
    UITestControl^ uiTestControl, 
    ControlStates uiState, 
    [OutAttribute] array<bool>^% stateValues
) abstract
abstract GetPropertyForControlState : 
        uiTestControl:UITestControl * 
        uiState:ControlStates * 
        stateValues:bool[] byref -> string[] 
public abstract function GetPropertyForControlState(
    uiTestControl : UITestControl, 
    uiState : ControlStates, 
    stateValues : boolean[]
) : String[]

参数

  • stateValues
    类型:array<System.Boolean[]%
    (输出)由返回的属性的布尔值组成的数组。

返回值

类型:array<System.String[]
由与指定控件状态值匹配的给定控件的属性名称组成的数组。

.NET Framework 安全性

请参见

参考

UITestPropertyProvider 类

Microsoft.VisualStudio.TestTools.UITesting 命名空间

UITestControl

ControlStates