Share via


JumpList.AddToRecentCategory Method (JumpPath)

Adds the specified jump 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 ( _
    jumpPath As JumpPath _
)
public static void AddToRecentCategory(
    JumpPath jumpPath
)
public:
static void AddToRecentCategory(
    JumpPath^ jumpPath
)
static member AddToRecentCategory : 
        jumpPath:JumpPath -> unit 
public static function AddToRecentCategory(
    jumpPath : JumpPath
)

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(JumpPath) method to request that the Windows shell add the specified jump 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(JumpPath) will fail silently.

.NET Framework Security

See Also

Reference

JumpList Class

AddToRecentCategory Overload

Microsoft.Windows.Shell Namespace

ShowRecentCategory