当在派生类中重写时,返回一个属性名称数组和一个状态值数组,其中状态值数组由给定控件的所有与指定控件状态值匹配的状态值组成。
命名空间:  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[]
参数
- uiTestControl
 类型:Microsoft.VisualStudio.TestTools.UITesting.UITestControl
 从中获取属性名称的 UITestControl 控件。
- stateValues
 类型:array<System.Boolean[]%
 (输出)由返回的属性的布尔值组成的数组。
返回值
类型:array<System.String[]
由与指定控件状态值匹配的给定控件的属性名称组成的数组。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。