desktop:StartupTasks

表示在应用启动期间运行的桌面进程。

元素层次结构

<包>

      <应用程序>

            <应用程序>

                  <扩展>

                        <Desktop:Extension>

                              <\Desktop:StartupTasks>

语法

<desktop:StartupTasks
  TaskId = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  Enabled = 'A boolean value.'
  DisplayName = 'A string with a value between 1 and 256 characters in length. This string is localizable.'
  rescap5:ImmediateRegistration =  'A boolean value.' />

特性和元素

属性

属性 说明 数据类型 必须 默认值
TaskId 任务的唯一标识符。 长度介于 1 到 32767 个字符之间的字符串,开头和结尾处有一个非空格字符。
Enabled 指示是否启用任务。 布尔值。
DisplayName 要向用户显示的用户友好名称。 长度介于 1 到 256 个字符之间的字符串。 此字符串可本地化。
rescap5:ImmediateRegistration 指示是否应立即注册任务。 布尔值

子元素

父元素

父元素 描述
desktop:Extension 声明应用的扩展点。

要求

桌面 http://schemas.microsoft.com/appx/manifest/desktop/windows10
回顾 3 http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/5
Minimum OS Version Windows 10版本 1607 (内部版本 14393)