IUIAutomationElement::CurrentName Property
Retrieves the name of the UI element.
Syntax
HRESULT IUIAutomationElement::get_CurrentName(BSTR *retVal);
Parameters
- retVal
The address of a BSTR that receives the name of the element.
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::CachedName