IUIAutomationElement::CachedAutomationId Property
Retrieves the element's Microsoft UI Automation identifier from the cache.
Syntax
HRESULT IUIAutomationElement::get_CachedAutomationId(BSTR *retVal);
Parameters
- retVal
The address of a BSTR that receives the cached identifier.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The identifier is unique among sibling elements in a container, and is the same in all instances of the application.
See Also
UIA_AutomationIdPropertyId, IUIAutomationElement::CurrentAutomationId