CachedParent Property

AutomationElement::CachedParent Property


Gets the cached parent of this AutomationElement.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

property AutomationElement^ CachedParent {
	AutomationElement^ get();

Property Value

Type: System.Windows.Automation::AutomationElement^

The parent element. The return value can be null if the specified element has no parent—for example, if this element is the root node.

Exception Condition

No parent element is cached.


The UI for the AutomationElement no longer exists.

In the following example, the Name properties of a list box and its list items are cached. The list box element is available in the CachedParent property of each list item element.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft