CngKey.ParentWindowHandle 属性

定义

获取或设置窗口句柄 (HWND),该句柄应该用于由访问密钥而产生的用户界面 (UI) 提示。

public:
 property IntPtr ParentWindowHandle { IntPtr get(); void set(IntPtr value); };
public IntPtr ParentWindowHandle { get; set; }
public IntPtr ParentWindowHandle { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
member this.ParentWindowHandle : nativeint with get, set
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.ParentWindowHandle : nativeint with get, set
Public Property ParentWindowHandle As IntPtr

属性值

IntPtr

nativeint

密钥的父窗口句柄。

属性

注解

密钥的父窗口句柄在 UI 提示(如智能卡 PIN 提示)中使用。 此值不通过持久化键持久保存。

建议始终为显示用户界面的键设置此属性。 不要对此类键使用 的 null 默认值。

适用于