Share via


UITestControl.WindowHandle Property

Gets the window handle for this control.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property WindowHandle As IntPtr
public virtual IntPtr WindowHandle { get; }
public:
virtual property IntPtr WindowHandle {
    IntPtr get ();
}
abstract WindowHandle : IntPtr
override WindowHandle : IntPtr
function get WindowHandle () : IntPtr

Property Value

Type: System.IntPtr
The window handle for this control.

.NET Framework Security

See Also

Reference

UITestControl Class

Microsoft.VisualStudio.TestTools.UITesting Namespace