AutomationElementMode Enumeration
Assembly: UIAutomationClient (in uiautomationclient.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
| Member name | Description | |
|---|---|---|
| Full | Specifies that returned elements have a full reference to the underlying UI. | |
| None | Specifies that returned elements have no reference to the underlying UI and contain only cached information. This mode might be used, for example, to retrieve the names of items in a list box without obtaining references to the items themselves. |
Full is the default, and specifies that returned elements contain a full reference to the underlying user interface (UI). None specifies that the returned elements have no reference to the underlying UI, and contain only cached information.
Certain operations on elements, such as GetCurrentPropertyValue or SetFocus, require a full reference; attempting to perform these on an element that has none results in an InvalidOperationException.
Using None can be more efficient when only properties are needed, as it avoids the overhead involved in setting up full references.
The following example shows how to set the mode on a CacheRequest.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.