Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- itemPath
Type: System.String
The path 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(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
-
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.