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
- jumpPath
Type: Microsoft.Windows.Shell.JumpPath
The JumpPath to add to the Jump List.
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
-
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.