JumpList.AddToRecentCategory 方法

定義

將指定的專案加入跳躍清單的 [最近 ] 類別。

多載

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殼層所管理。 若要在跳躍清單中顯示最近使用的專案,請將 ShowRecentCategory 屬性設定為 true

您可以呼叫 AddToRecentCategory(String) 方法來要求Windows殼層將專案路徑新增至 [最近 使用的專案] 清單。 如果您的應用程式未註冊以處理專案的檔案類型,它不會出現在 [最近 ] 清單中,而且對 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殼層所管理。 若要在跳躍清單中顯示最近使用的專案,請將 ShowRecentCategory 屬性設定為 true

您可以呼叫 AddToRecentCategory(JumpPath) 方法來要求Windows殼層將指定的跳躍路徑新增至 [最近 專案] 清單。 如果您的應用程式未註冊以處理專案的檔案類型,它不會出現在 [最近 ] 清單中,而且對 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殼層所管理。 若要在跳躍清單中顯示最近使用的專案,請將 ShowRecentCategory 屬性設定為 true

您可以呼叫 AddToRecentCategory(JumpTask) 方法來要求Windows殼層將指定的跳躍工作新增至 [最近 專案] 清單。

另請參閱

適用於