IUIAutomationSelectionPattern::GetCachedSelection Method
Retrieves the cached selected elements in the container.
Syntax
HRESULT GetCachedSelection( IUIAutomationElementArray **retVal );
Parameters
- retVal
[out, retval] The address of a variable that receives a pointer to the IUIAutomationElementArray interface for the cached collection of selected elements. The default is an empty array.
Return Value
Returns S_OK if successful, or an error value otherwise.