IUIAutomationLegacyIAccessiblePattern::GetCachedSelection method (uiautomationclient.h)

Retrieves the cached Microsoft Active Accessibility property that identifies the selected children of this element.

Syntax

HRESULT GetCachedSelection(
  [out, retval] IUIAutomationElementArray **pvarSelectedChildren
);

Parameters

[out, retval] pvarSelectedChildren

Type: IUIAutomationElementArray**

Receives a pointer to the cached collection of the selected child elements.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See also

IUIAutomationLegacyIAccessiblePattern