We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

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
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public abstract string[] GetPropertyForControlState(
	UITestControl uiTestControl,
	ControlStates uiState,
	out bool[] stateValues
)

Parameters

uiTestControl
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
A UITestControl control from which to get the property names.
uiState
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.ControlStates
One of the ControlStates values.
stateValues
Type: System.Boolean[]%
(Output) An array of Boolean values for the returned properties.

Return Value

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

Show: