語言

JumpList.AddToRecentCategory 方法

定義

將指定項目加入跳轉清單的 「近期 」類別。

多載

名稱 Description
AddToRecentCategory(String)

將指定的項目路徑加入跳轉清單的 「最近」 類別。

AddToRecentCategory(JumpPath)

將指定的跳躍路徑加入跳躍清單的 「最近」 類別。

AddToRecentCategory(JumpTask)

將指定的跳躍任務加入跳躍清單的 「近期 」類別。

AddToRecentCategory(String)

將指定的項目路徑加入跳轉清單的 「最近」 類別。

public:
 static void AddToRecentCategory(System::String ^ itemPath);
[System.Security.SecurityCritical]
public static void AddToRecentCategory(string itemPath);
public static void AddToRecentCategory(string itemPath);
[<System.Security.SecurityCritical>]
static member AddToRecentCategory : string -> unit
static member AddToRecentCategory : string -> unit
Public Shared Sub AddToRecentCategory (itemPath As String)

參數

itemPath
String

加入跳躍清單的路徑。

屬性

備註

「最近」類別的內容由 Windows shell 管理。 要在跳轉清單中顯示最近使用的項目,請將屬性設 ShowRecentCategory 為 true。

你可以呼叫這個 AddToRecentCategory(String) 方法,請求 Windows shell 在 「最近 項目」清單中新增項目路徑。 如果您的應用程式未註冊以處理該項目的檔案類型,該項目將不會出現 在「最近」 清單中,且呼叫 的 AddToRecentCategory(String) 也會無聲無息地失敗。

另請參閱

適用於

AddToRecentCategory(JumpPath)

將指定的跳躍路徑加入跳躍清單的 「最近」 類別。

public:
 static void AddToRecentCategory(System::Windows::Shell::JumpPath ^ jumpPath);
[System.Security.SecurityCritical]
public static void AddToRecentCategory(System.Windows.Shell.JumpPath jumpPath);
public static void AddToRecentCategory(System.Windows.Shell.JumpPath jumpPath);
[<System.Security.SecurityCritical>]
static member AddToRecentCategory : System.Windows.Shell.JumpPath -> unit
static member AddToRecentCategory : System.Windows.Shell.JumpPath -> unit
Public Shared Sub AddToRecentCategory (jumpPath As JumpPath)

參數

jumpPath
JumpPath

JumpPath加入跳躍清單。

屬性

備註

「最近」類別的內容由 Windows shell 管理。 要在跳轉清單中顯示最近使用的項目,請將屬性設 ShowRecentCategory 為 true。

你可以呼叫這個 AddToRecentCategory(JumpPath) 方法,請求 Windows shell 將指定的跳躍路徑加入 最近的 項目清單。 如果您的應用程式未註冊以處理該項目的檔案類型,該項目將不會出現 在「最近」 清單中,且呼叫 的 AddToRecentCategory(JumpPath) 也會無聲無息地失敗。

另請參閱

適用於

AddToRecentCategory(JumpTask)

將指定的跳躍任務加入跳躍清單的 「近期 」類別。

public:
 static void AddToRecentCategory(System::Windows::Shell::JumpTask ^ jumpTask);
[System.Security.SecurityCritical]
public static void AddToRecentCategory(System.Windows.Shell.JumpTask jumpTask);
public static void AddToRecentCategory(System.Windows.Shell.JumpTask jumpTask);
[<System.Security.SecurityCritical>]
static member AddToRecentCategory : System.Windows.Shell.JumpTask -> unit
static member AddToRecentCategory : System.Windows.Shell.JumpTask -> unit
Public Shared Sub AddToRecentCategory (jumpTask As JumpTask)

參數

jumpTask
JumpTask

JumpTask加入跳躍清單。

屬性

備註

「最近」類別的內容由 Windows shell 管理。 要在跳轉清單中顯示最近使用的項目,請將屬性設 ShowRecentCategory 為 true。

你可以呼叫這個 AddToRecentCategory(JumpTask) 方法,請求 Windows shell 將指定的跳轉任務加入 最近的 項目清單。

另請參閱

適用於