AutomationElement::Current Property
.NET Framework (current version)
Gets the current property values of the AutomationElement.
Assembly: UIAutomationClient (in UIAutomationClient.dll)
public: property AutomationElement::AutomationElementInformation Current { AutomationElement::AutomationElementInformation get(); }
Property Value
Type: System.Windows.Automation::AutomationElement::AutomationElementInformationA structure containing the current property values.
| Exception | Condition |
|---|---|
| ElementNotAvailableException | The UI for the AutomationElement no longer exists. |
The accessors for UI Automation properties are represented as properties of the structure returned by Current. 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 cached value of UI Automation properties on this element, use the Cached property.
.NET Framework
Available since 3.0
Available since 3.0
Show: