CngKey.ParentWindowHandle 属性
定义
获取或设置窗口句柄 (HWND),该句柄应该用于由访问密钥而产生的用户界面 (UI) 提示。Gets or sets the window handle (HWND) that should be used for user interface (UI) prompts caused by accessing the key.
public:
property IntPtr ParentWindowHandle { IntPtr get(); void set(IntPtr value); };
public IntPtr ParentWindowHandle { get; set; }
[get: System.Security.SecurityCritical]
[set: System.Security.SecurityCritical]
public IntPtr ParentWindowHandle { get; 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
属性值
密钥的父窗口句柄。The parent window handle for the key.
- 属性
注解
键的父窗口句柄用于 UI 提示,如智能卡 PIN 提示。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. 不要将的默认值用于 null 此类键。Do not use the default value of null for such keys.