AutomationElement::Cached Property
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.