IUIAutomationValuePattern::get_CachedValue method

Retrieves the cached value of the element.

This property is read-only.

Syntax

HRESULT get_CachedValue(
  BSTR *retVal
);

Parameters

retVal

Return Value

None

Remarks

Single-line edit controls support programmatic access to their contents through IUIAutomationValuePattern. However, multiline edit controls do not support this control pattern, and their contents must be retrieved by using IUIAutomationTextPattern.

This property does not support the retrieval of formatting information or substring values. IUIAutomationTextPattern must be used in these scenarios as well.

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista, Windows XP with SP3 and Platform Update for Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008, Windows Server 2003 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See Also

IUIAutomationValuePattern