AutomationElement.GetUpdatedCache Method (CacheRequest)


Retrieves a new AutomationElement with an updated cache.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

member GetUpdatedCache : 
        request:CacheRequest -> AutomationElement


Type: System.Windows.Automation.CacheRequest

The patterns and properties to include in the updated cache.

Return Value

Type: System.Windows.Automation.AutomationElement

A new AutomationElement that has an updated cache.

The original AutomationElement is unchanged. GetUpdatedCache returns a new AutomationElement, that refers to the same user interface (UI) and has the same RuntimeIdProperty.

The following example demonstrates how a cache might be updated whenever the selection in a combo box changes.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top