Share via


UITechnologyElementProxy.GetRequestedState Method

Gets the current state information of this element for the given requested states.

If the element does not support querying only the selective states, it can return the complete state information.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Overrides Function GetRequestedState ( _
    requestedState As AccessibleStates _
) As AccessibleStates
public override AccessibleStates GetRequestedState(
    AccessibleStates requestedState
)
public:
virtual AccessibleStates GetRequestedState(
    AccessibleStates requestedState
) override
abstract GetRequestedState : 
        requestedState:AccessibleStates -> AccessibleStates  
override GetRequestedState : 
        requestedState:AccessibleStates -> AccessibleStates
public override function GetRequestedState(
    requestedState : AccessibleStates
) : AccessibleStates

Parameters

  • requestedState
    Type: AccessibleStates

    The states for which to check.

Return Value

Type: AccessibleStates
The information about the given requested state or complete state information.

Implements

IUITechnologyElement.GetRequestedState(AccessibleStates)

.NET Framework Security

See Also

Reference

UITechnologyElementProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace