Export (0) Print
Expand All

AutomationElement.GetUpdatedCache Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft