Show / Hide Table of Contents

Property WindowHandle

WindowHandle

Gets or sets the handle for the current window.

Declaration
public IntPtr WindowHandle { get; set; }
Property Value
Type Description
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
TargetVersions
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
In This Article
Back to top Copyright © 2022 Esri.