AutomationElement.AutomationElementInformation.NativeWindowHandle Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the handle of the element's window.

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

public int NativeWindowHandle { get; }

Property Value

Type: System.Int32

The handle of the window, if one exists; otherwise 0.

For more information, see NativeWindowHandleProperty.

.NET Framework
Available since 3.0
Return to top