Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITestPropertyProvider.GetPropertyForControlState Method (UITestControl, ControlStates, Boolean[])

 

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.

Return to top
Show: