Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

AutomationElement::Cached Property

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

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

public:
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.

ExceptionCondition
InvalidOperationException

There are no cached properties.

ElementNotAvailableException

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

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft