Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


CngKey.ParentWindowHandle Property

Definition

Gets or sets the window handle (HWND) that should be used for user interface (UI) prompts caused by accessing the key.

C#
public IntPtr ParentWindowHandle { get; set; }
C#
public IntPtr ParentWindowHandle { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }

Property Value

IntPtr

The parent window handle for the key.

Attributes

Remarks

The parent window handle for the key is used in UI prompts, such as smart card PIN prompts. This value is not persisted with persisted keys.

We recommend that you always set this property for keys that display a user interface. Do not use the default value of null for such keys.

Applies to

Termék Verziók
.NET Core 1.0, Core 1.1, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5