AutomationElement::Cached Property
.NET Framework (current version)
Gets the cached UI Automation property values for this AutomationElement object.
Assembly: UIAutomationClient (in UIAutomationClient.dll)
public: property AutomationElement::AutomationElementInformation Cached { AutomationElement::AutomationElementInformation get(); }
Property Value
Type: System.Windows.Automation::AutomationElement::AutomationElementInformationA structure containing the cached property values for the AutomationElement.
| Exception | Condition |
|---|---|
| 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.
.NET Framework
Available since 3.0
Available since 3.0
Show: