Share via


IUIAutomationElement::CachedClassName Property

Retrieves the element's class name from the cache.

Syntax

HRESULT IUIAutomationElement::get_CachedClassName(BSTR *retVal);

Parameters

  • retVal
    The address of a BSTR that receives the cached class name.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The value of this property is implementation-defined. The property is useful in testing environments.

See Also

UIA_ClassNamePropertyId, IUIAutomationElement::CurrentClassName