JumpList.AddToRecentCategory Method (String)

.NET Framework (current version)

Adds the specified item path to the Recent category of the Jump List.

Namespace:   System.Windows.Shell
Assembly:  PresentationFramework (in PresentationFramework.dll)

[UIPermissionAttribute(SecurityAction.Demand, Window = UIPermissionWindow.AllWindows)]
public static void AddToRecentCategory(
	string itemPath


Type: System.String

The path to add to the Jump List.

The contents of the Recent category are managed by the Windows shell. To display recently used items in the Jump List, set the ShowRecentCategory property to true.

You can call the AddToRecentCategory(String) method to request that the Windows shell add an item path to the Recent items list. 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.


requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

.NET Framework
Available since 4.0
Return to top