IUIAutomationLegacyIAccessiblePattern::CachedRole Property
Retrieves the cached Microsoft Active Accessibility role of the element.
Syntax
HRESULTÂ IUIAutomationLegacyIAccessiblePattern::get_CachedRole(DWORDÂ *pdwRole);
Parameters
- pdwRole
The address of a variable that receives the cached role identifier, such as ROLE_SYSTEM_LIST.
Return Value
Returns S_OK if successful, or an error value otherwise.