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, array<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:
virtual array<String^>^ GetPropertyForControlState(
	UITestControl^ uiTestControl,
	ControlStates uiState,
	[OutAttribute] array<bool>^% stateValues
) abstract

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: array<System::Boolean>^

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

Return Value

Type: array<System::String^>^

An array of property names for the given control that match the specified control state value.

Return to top
Show: