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 | WideTiles | WideTile5 | FirstRunTaskMicrosoft-Windows-Shell-Setup | StartTiles | WideTiles | WideTile5 | 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 輸出會顯示如何使用<WideTiles>
元件。The following XML output shows how to use the <WideTiles>
component.
<WideTiles>
<WideTile1>
<AppId>12345ChannelFabrikam.channel-ABC_defghij6789!App</AppId>
<FirstRunTask>backgroundtask.js</FirstRunTask>
</WideTile1>
<WideTile2>
<AppId>34567ChannelFabrikam.channel-DEF_012ghijk345!App</AppId>
<FirstRunTask>Fabrikam.FirstRunTask</FirstRunTask>
</WideTile2>
<WideTile3>
<AppId>56789ChannelFabrikam.channel-GHI_67890jklmno!App</AppId>
</WideTile3>
</WideTiles>