Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

AutomationElement.GetCurrentPropertyValue Method

Retrieves the current value of the specified property from an AutomationElement.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method GetCurrentPropertyValue(AutomationProperty) Retrieves the value of the specified property on this AutomationElement. An appropriate default value for the property type is returned for properties not explicitly supported by the target user interface (UI) element.
Public method GetCurrentPropertyValue(AutomationProperty, Boolean) Retrieves the value of the specified property on this AutomationElement, optionally ignoring any default property.
Top

The value returned by the GetCurrentPropertyValue method is current at the time it is called. The value can subsequently change by other applications interacting with the user interface (UI).

For some forms of UI, this method will incur cross-process performance overhead. Applications can concentrate overhead by caching properties and then retrieving them by using GetCachedPropertyValue.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.