JumpList.AddToRecentCategory Method

Definition

将指定的项添加到跳转列表的“最近”类别中。Adds the specified item to the Recent category of the Jump List.

Overloads

AddToRecentCategory(String)

将指定的项路径添加到跳转列表的“最近”类别中。Adds the specified item path to the Recent category of the Jump List.

AddToRecentCategory(JumpPath)

将指定的跳转路径添加到跳转列表的“最近”类别中。Adds the specified jump path to the Recent category of the Jump List.

AddToRecentCategory(JumpTask)

将指定的跳转任务添加到跳转列表的“最近”类别中。Adds the specified jump task to the Recent category of the Jump List.

AddToRecentCategory(String)

将指定的项路径添加到跳转列表的“最近”类别中。Adds the specified item path to the Recent category of the Jump List.

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

Parameters

itemPath
String

要添加到跳转列表中的路径。The path to add to the Jump List.

Attributes

Remarks

最新类别的内容由 Windows shell 管理。The contents of the Recent category are managed by the Windows shell. 若要在跳转列表中显示最近使用过的项,请将 ShowRecentCategory 属性设置为 trueTo display recently used items in the Jump List, set the ShowRecentCategory property to true.

可以调用 AddToRecentCategory(String) 方法,以请求 Windows shell 将项路径添加到 "最近使用的项" 列表中。You can call the AddToRecentCategory(String) method to request that the Windows shell add an item path to the Recent items list. 如果你的应用程序未注册为处理该项的文件类型,则它将不会出现在 "最近" 列表中,并且对 AddToRecentCategory(String) 的调用将以静默方式失败。If your application is not registered to handle the file type of the item, it will not appear in the Recent list and calls to AddToRecentCategory(String) will fail silently.

See also

AddToRecentCategory(JumpPath)

将指定的跳转路径添加到跳转列表的“最近”类别中。Adds the specified jump path to the Recent category of the Jump List.

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

Parameters

jumpPath
JumpPath

要添加到跳转列表中的 JumpPathThe JumpPath to add to the Jump List.

Attributes

Remarks

最新类别的内容由 Windows shell 管理。The contents of the Recent category are managed by the Windows shell. 若要在跳转列表中显示最近使用过的项,请将 ShowRecentCategory 属性设置为 trueTo display recently used items in the Jump List, set the ShowRecentCategory property to true.

可以调用 AddToRecentCategory(JumpPath) 方法来请求 Windows shell 将指定的跳转路径添加到最近使用的项列表。You can call the AddToRecentCategory(JumpPath) method to request that the Windows shell add the specified jump path to the Recent items list. 如果你的应用程序未注册为处理该项的文件类型,则它将不会出现在 "最近" 列表中,并且对 AddToRecentCategory(JumpPath) 的调用将以静默方式失败。If your application is not registered to handle the file type of the item, it will not appear in the Recent list and calls to AddToRecentCategory(JumpPath) will fail silently.

See also

AddToRecentCategory(JumpTask)

将指定的跳转任务添加到跳转列表的“最近”类别中。Adds the specified jump task to the Recent category of the Jump List.

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

Parameters

jumpTask
JumpTask

要添加到跳转列表中的 JumpTaskThe JumpTask to add to the Jump List.

Attributes

Remarks

最新类别的内容由 Windows shell 管理。The contents of the Recent category are managed by the Windows shell. 若要在跳转列表中显示最近使用过的项,请将 ShowRecentCategory 属性设置为 trueTo display recently used items in the Jump List, set the ShowRecentCategory property to true.

可以调用 AddToRecentCategory(JumpTask) 方法,以请求 Windows shell 将指定的跳转任务添加到最近使用的项列表。You can call the AddToRecentCategory(JumpTask) method to request that the Windows shell add the specified jump task to the Recent items list.

See also

Applies to