CngKey.ParentWindowHandle 属性

定义

获取或设置应用于用户界面(UI)提示的窗口句柄(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 用于此类密钥。

适用于