JumpList.AddToRecentCategory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
[System.Security.SecurityCritical]
public static void AddToRecentCategory (string itemPath);
public static void AddToRecentCategory (string itemPath);
[<System.Security.SecurityCritical>]
static member AddToRecentCategory : string -> unit
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
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.
See also
Applies to
AddToRecentCategory(JumpPath)
Adds the specified jump path to the Recent category of the Jump List.
public:
static void AddToRecentCategory(System::Windows::Shell::JumpPath ^ jumpPath);
[System.Security.SecurityCritical]
public static void AddToRecentCategory (System.Windows.Shell.JumpPath jumpPath);
public static void AddToRecentCategory (System.Windows.Shell.JumpPath jumpPath);
[<System.Security.SecurityCritical>]
static member AddToRecentCategory : System.Windows.Shell.JumpPath -> unit
static member AddToRecentCategory : System.Windows.Shell.JumpPath -> unit
Public Shared Sub AddToRecentCategory (jumpPath As JumpPath)
Parameters
- Attributes
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.
See also
Applies to
AddToRecentCategory(JumpTask)
Adds the specified jump task to the Recent category of the Jump List.
public:
static void AddToRecentCategory(System::Windows::Shell::JumpTask ^ jumpTask);
[System.Security.SecurityCritical]
public static void AddToRecentCategory (System.Windows.Shell.JumpTask jumpTask);
public static void AddToRecentCategory (System.Windows.Shell.JumpTask jumpTask);
[<System.Security.SecurityCritical>]
static member AddToRecentCategory : System.Windows.Shell.JumpTask -> unit
static member AddToRecentCategory : System.Windows.Shell.JumpTask -> unit
Public Shared Sub AddToRecentCategory (jumpTask As JumpTask)
Parameters
- Attributes
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(JumpTask) method to request that the Windows shell add the specified jump task to the Recent items list.