Прочитај на енглеском Уреди

Делите путем


JumpList.AddToRecentCategory Method

Definition

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.

C#
[System.Security.SecurityCritical]
public static void AddToRecentCategory(string itemPath);
C#
public static void AddToRecentCategory(string itemPath);

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

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

AddToRecentCategory(JumpPath)

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

C#
[System.Security.SecurityCritical]
public static void AddToRecentCategory(System.Windows.Shell.JumpPath jumpPath);
C#
public static void AddToRecentCategory(System.Windows.Shell.JumpPath jumpPath);

Parameters

jumpPath
JumpPath

The JumpPath 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(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

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

AddToRecentCategory(JumpTask)

Adds the specified jump task to the Recent category of the Jump List.

C#
[System.Security.SecurityCritical]
public static void AddToRecentCategory(System.Windows.Shell.JumpTask jumpTask);
C#
public static void AddToRecentCategory(System.Windows.Shell.JumpTask jumpTask);

Parameters

jumpTask
JumpTask

The JumpTask 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(JumpTask) method to request that the Windows shell add the specified jump task to the Recent items list.

See also

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10