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.