JumpList.AddToRecentCategory 方法 (JumpPath)

将指定的跳转路径添加到跳转列表的**“最近”**类别中。

命名空间:  Microsoft.Windows.Shell
程序集:  Microsoft.Windows.Shell(在 Microsoft.Windows.Shell.dll 中)

语法

声明
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
)

参数

备注

**“最近”**类别的内容由 Windows shell 管理。 若要在跳转列表中显示最近使用的项,请将 ShowRecentCategory 属性设置为 true。

您可以调用 AddToRecentCategory(JumpPath) 方法来请求 Windows shell 将指定的跳转路径添加到**“最近”项列表中。 如果您的应用程序未注册为处理该项的文件类型,它将不会出现在“最近”**列表中,并且对 AddToRecentCategory(JumpPath) 的调用将静默失败。

.NET Framework 安全性

请参见

参考

JumpList 类

AddToRecentCategory 重载

Microsoft.Windows.Shell 命名空间

ShowRecentCategory