Skip to main content

JumpListCategory Object

  • type string (optional) - One of the following:以下其中一项:
    • tasks - Items in this category will be placed into the standard Tasks category. 此类别中的项目将被放置到标准Tasks类别中。There can be only one such category, and it will always be displayed at the bottom of the Jump List.只能有一个这样的类别,并且它将始终显示在跳转列表的底部。
    • frequent - Displays a list of files frequently opened by the app, the name of the category and its items are set by Windows.显示应用程序经常打开的文件列表,类别的名称及其项目由Windows设置。
    • recent - Displays a list of files recently opened by the app, the name of the category and its items are set by Windows. 显示应用程序最近打开的文件列表,类别的名称及其项目由Windows设置。Items may be added to this category indirectly using app.addRecentDocument(path).可以使用app.addRecentDocument(path)将项目间接添加到此类别中。
    • custom - Displays tasks or file links, name must be set by the app.显示任务或文件链接,name必须由应用程序设置。
  • name string (optional) - Must be set if type is custom, otherwise it should be omitted.如果typecustom的,则必须设置,否则应省略。
  • items JumpListItem[] (optional) - Array of JumpListItem objects if type is tasks or custom, otherwise it should be omitted.JumpListItem对象的数组(如果typetaskscustom),否则应省略它。

Note: If a JumpListCategory object has neither the type nor the name property set then its type is assumed to be tasks. 如果JumpListCategory对象既没有type也没有name属性集,则假定其type为任务。If the name property is set but the type property is omitted then the type is assumed to be custom.如果设置了name属性,但省略了type属性,则假定该typecustom

Note: The maximum length of a Jump List item's description property is 260 characters. 跳转列表项的description属性的最大长度为260个字符。Beyond this limit, the item will not be added to the Jump List, nor will it be displayed.超过此限制,该项目将不会添加到跳转列表中,也不会显示。