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 with get 
override WindowHandle : IntPtr with get
function get WindowHandle () : IntPtr

Property Value

Type: IntPtr
The window handle for this control.

.NET Framework Security

See Also

Reference

UITestControl Class

Microsoft.VisualStudio.TestTools.UITesting Namespace