FirstRunTaskFirstRunTask

FirstRunTask設定指定的背景工作,正在使用中,或即時,根據預設,當使用者登入 Windows 第一次的磚。The FirstRunTask setting specifies the background task that is active, or live, by default for a tile when a user signs in to Windows for the first time.

背景工作必須向 Windows 通知服務註冊的使用者在第一次登入,並必須將通知傳送至應用程式的動態磚。The background task must register the user with Windows Notification Service at first sign-in, and must send notifications to the app’s live tile.

Values

若要讓圖格,執行下列其中一項:To make a tile live, do one of the following:

  • 如果您的背景工作是在 JavaScript 中,指定實作 IBackgroundTask 介面的.js 檔案。If your background task is in JavaScript, specify the .js file that implements the IBackgroundTask interface.

  • 如果您的背景工作是在 XAML 或 c + + 中,指定應用程式的類別識別碼。If your background task is in XAML or C++, specify the class ID for the application.

有效的設定階段Valid Configuration Passes

特製化specialize

auditUserauditUser

oobeSystemoobeSystem

父階層Parent Hierarchy

Microsoft-Windows-Shell-Setup | StartTiles | SquareTiles | SquareOrDesktopTile8 | FirstRunTaskMicrosoft-Windows-Shell-Setup | StartTiles | SquareTiles | SquareOrDesktopTile8 | FirstRunTask

套用至Applies To

如需此元件支援的架構與 Windows 版本的清單,請參閱Microsoft Windows Shell-安裝For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML 範例XML Example

下列的 XML 輸出會顯示如何使用<SquareTiles>元件。The following XML output shows how to use the <SquareTiles> component.

     <SquareTiles>
          <SquareOrDesktopTile1>
               <AppIdOrPath>C:\programdata\microsoft\windows\start menu\programs\desktoptile1.lnk</AppIdOrPath>
               <FirstRunTask>backgroundtask.js</FirstRunTask>
          </SquareOrDesktopTile1>
          <SquareOrDesktopTile2>
               <AppIdOrPath>67890ChannelFabrikam.channel-JKL_mnop1234789!App</AppIdOrPath>
               <FirstRunTask>Fabrikam.FirstRunTask</FirstRunTask>
          </SquareOrDesktopTile2>
          <SquareOrDesktopTile3>
               <AppIdOrPath>C:\programdata\microsoft\windows\start menu\programs\desktoptile3.lnk</AppIdOrPath>
          </SquareOrDesktopTile3>
          <SquareTile1>
               <AppId>12345ChannelFabrikam.channel-ABC_defghij6789!App</AppId>
               <FirstRunTask>backgroundtask.js</FirstRunTask>
          </SquareTile1>
          <SquareTile2>
               <AppId>34567ChannelFabrikam.channel-DEF_012ghijk345!App</AppId>
               <FirstRunTask>Fabrikam.FirstRunTask</FirstRunTask>
          </SquareTile2>
          <SquareTile3>
               <AppId>56789ChannelFabrikam.channel-GHI_67890jklmno!App</AppId>
          </SquareTile3>
     </SquareTiles> 

StartTilesStartTiles

RegionalOverridesRegionalOverrides

SquareTilesSquareTiles

SquareTilesSquareTiles