JumpList.ShowFrequentCategory 屬性

定義

取得或設定值,這個值指出是否在跳躍清單中顯示經常使用的項目。

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

屬性值

Boolean

如果在跳躍清單中顯示經常使用的項目則為 true,否則為 false。 預設為 false

屬性

範例

下列範例顯示 JumpList 設定為顯示 [常用 ] 類別的 。 此範例是類別概觀中較大範例的 JumpList 一部分。

<JumpList ShowRecentCategory="True"
          ShowFrequentCategory="True"
          JumpItemsRejected="JumpList_JumpItemsRejected"
          JumpItemsRemovedByUser="JumpList_JumpItemsRemovedByUser">

備註

[常用] 類別的內容是由Windows殼層管理。 若要在跳躍清單中顯示常用專案,請將 ShowFrequentCategory 屬性設定為 true

[最近] 和 [頻繁] 類別通常包含許多相同的跳躍專案。 因此,應用程式通常會在跳躍清單中顯示 [最近] 或 [ 常用 ] 類別,但不會同時顯示兩者。

適用於