We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.
UITestPropertyProvider.GetPropertyForControlState Method
Visual Studio 2010
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.
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: