IUIAutomationElement::GetCachedPattern Method
Retrieves from the cache the IUnknown interface of the specified control pattern of this UI Automation element.
Syntax
HRESULT GetCachedPattern( PATTERNID patternId, IUnknown **patternObject );
Parameters
- patternId
[in] The identifier of the control pattern. For a list of control pattern IDs, see Control Pattern Identifiers.- patternObject
[out, retval] The address of a variable that receives a pointer to an IUnknown interface.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also
IUIAutomationElement, IUIAutomationElement::GetCachedPatternAs, IUIAutomationElement::GetCurrentPattern, UI Automation Control Patterns Overview