FirstRunTask (microsoft-windows-shell-setup-starttiles-squaretiles-squaretiles-squareordesktoptile11-firstruntask)

L'impostazione FirstRunTask specifica l'attività in background attiva o attiva per impostazione predefinita per un riquadro quando un utente accede a Windows per la prima volta.

L'attività in background deve registrare l'utente con Il servizio di notifica di Windows al primo accesso e deve inviare notifiche al riquadro animato dell'app.

Valori

Per rendere attivo un riquadro, eseguire una delle operazioni seguenti:

  • Se l'attività in background è in JavaScript, specificare il file .js che implementa l'interfaccia IBackgroundTask.

  • Se l'attività in background è in XAML o C++, specificare l'ID classe per l'applicazione.

Passaggi di configurazione validi

specialize

Audituser

oobeSystem

Gerarchia padre

Microsoft-Windows-Shell-Setup | StartTiles | SquareTiles | SquareOrDesktopTile11 | FirstRunTask

Si applica a

Per un elenco delle edizioni e delle architetture di Windows supportate da questo componente, vedere Microsoft-Windows-Shell-Setup.

Esempio XML

Nell'output XML seguente viene illustrato come usare il <SquareTiles> componente .

     <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> 

StartTiles

RegionalOverrides

SquareTiles

SquareTiles