CngKey.ParentWindowHandle 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定視窗代柄(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
就是金鑰的父視窗把柄。
- 屬性
備註
金鑰的父視窗指稱用於使用者介面提示,例如智慧卡 PIN 提示。 這個值不會被持久化的金鑰持久化。
我們建議你總是為顯示使用者介面的鍵設定此屬性。 這類鍵鑰不要使用預設值 null 。