Share via


JumpList.AddToRecentCategory Method (String)

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

Namespace:  Microsoft.Windows.Shell
Assembly:  Microsoft.Windows.Shell (in Microsoft.Windows.Shell.dll)

Syntax

'Declaration
Public Shared Sub AddToRecentCategory ( _
    itemPath As String _
)
public static void AddToRecentCategory(
    string itemPath
)
public:
static void AddToRecentCategory(
    String^ itemPath
)
static member AddToRecentCategory : 
        itemPath:string -> unit 
public static function AddToRecentCategory(
    itemPath : String
)

Parameters

Remarks

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.

.NET Framework Security

See Also

Reference

JumpList Class

AddToRecentCategory Overload

Microsoft.Windows.Shell Namespace

ShowRecentCategory