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
uiTestControl
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlA UITestControl control from which to get the property names.
uiState
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.ControlStatesOne of the ControlStates values.
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
- 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.
See Also
Reference
Microsoft.VisualStudio.TestTools.UITesting Namespace