共用方式為


TaskDialogButton.ShowShieldIcon 屬性

定義

取得或設定值,指出是否應在按鈕附近顯示使用者帳戶控制 (UAC) 盾牌圖示;亦即,按鈕叫用的動作是否需要提高權限。

public:
 property bool ShowShieldIcon { bool get(); void set(bool value); };
public bool ShowShieldIcon { get; set; }
member this.ShowShieldIcon : bool with get, set
Public Property ShowShieldIcon As Boolean

屬性值

Boolean

true 顯示 UAC 防護圖示;否則為 false 。 預設值是 false

例外狀況

屬性已在目前繫結至工作對話方塊的按鈕上設定,但對話方塊剛剛開始瀏覽至其他頁面。

備註

當對話方塊顯示時,可以設定這個屬性。

適用於