AutomationElement::Cached Property


Gets the cached UI Automation property values for this AutomationElement object.

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

property AutomationElement::AutomationElementInformation Cached {
	AutomationElement::AutomationElementInformation get();

Property Value

Type: System.Windows.Automation::AutomationElement::AutomationElementInformation

A structure containing the cached property values for the AutomationElement.

Exception Condition

There are no cached properties.


The UI for the AutomationElement no longer exists.

The accessors for UI Automation properties are represented as properties of the structure returned by Cached. You do not need to retrieve the structure; you can access its members directly, as in the example below. For specific information on the properties available and their use, see AutomationElement::AutomationElementInformation.

To get the current value of UI Automation properties on this element use the Current property.

The following example shows how the Name property can be cached and then retrieved by using the Cached property.

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

.NET Framework
Available since 3.0
Return to top