IUIAutomationElement::CachedName Property
Retrieves the name of the UI Automation element from the cache.
Syntax
HRESULT IUIAutomationElement::get_CachedName(BSTR *retVal);
Parameters
- retVal
The address of a variable that receives the value of the cached property.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The name of an element can be used to find the element in the element tree when the automation ID property is not supported on the element.
See Also
UIA_NamePropertyId, IUIAutomationElement, IUIAutomationElement::CurrentName