IUIAutomationLegacyIAccessiblePattern::CurrentName Property

Retrieves the Microsoft Active Accessibility name property of the element.

Syntax

HRESULT IUIAutomationLegacyIAccessiblePattern::get_CurrentName(BSTR *pszName);

Parameters

  • pszName
    The address of a variable that receives a pointer to 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.