Property WindowHandle
WindowHandle
Gets or sets the handle for the current window.
Declaration
public IntPtr WindowHandle { get; set; }
Property Value
Type | Description |
---|---|
System.IntPtr | The handle for the current window. |
Remarks
The window handle is used to ensure that credential request dialogs are associated with your application's main window.
If set to System.IntPtr.Zero, the runtime will attempt to determine the handle for the current window based on the current UI thread. If no window can be found, an exception may occur during credential challenges.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.14 - 200.6 |
.NET Framework | 100.14 - 200.6 |