Partager via


UITestPropertyProvider.GetPropertyForControlState Method

When overridden in a derived class, returns an array of property names and an array of all state values for the given control that match the specified control state value.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assemblies:   Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
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[]

Parameters

  • stateValues
    Type: array<Boolean[]%

    (Output) An array of Boolean values for the returned properties.

Return Value

Type: array<String[]
An array of property names for the given control that match the specified control state value.

.NET Framework Security

See Also

Reference

UITestPropertyProvider Class

Microsoft.VisualStudio.TestTools.UITesting Namespace

UITestControl

ControlStates

Other Resources

Enable Coded UI Testing of Your Controls