Dev Center - Windows Store apps
Dev Center Home
Internet Explorer
Desktop
Hardware
Dashboard
Get started
Design
Develop
Market
Sign in
App architecture
How to
Samples
Reference
Downloads
Forums
Dev Center - Windows Store apps
>
Samples
>
Windows 8 app samples
>
Background task sample
Download the tools and SDK
Quick Access
My Samples
Upload a sample
Browse Sample Requests
Background task sample
This sample shows you how to create and register background tasks using the Windows Runtime background task API.
Download
C# (89.1 KB)
C#, JavaScript (76.9 KB)
C++ (105.6 KB)
VB.NET (89.3 KB)
Ratings
(19)
Downloaded
32,204 times
Favorites
Add To Favorites
Requires
Visual Studio 2012
Last Updated
4/9/2013
License
MS-LPL
Share
Technologies
Windows Runtime
Topics
App model
Report Abuse to Microsoft
Description
Browse Code
Q and A (13)
Solution Explorer
C#
C#, JavaScript
C++
VB.NET
BackgroundTask
Assets
badgelogo-sdk.png
microsoft-sdk.png
placeholder-sdk.png
smallTile-sdk.png
splash-sdk.png
squareTile-sdk.png
storeLogo-sdk.png
tile-sdk.png
windows-sdk.png
Common
LayoutAwarePage.cs
StandardStyles.xaml
Properties
AssemblyInfo.cs
Sample-Utils
SampleTemplateStyles.xaml
SuspensionManager.cs
App.xaml
App.xaml.cs
BackgroundTask.csproj
Constants.cs
MainPage.xaml
MainPage.xaml.cs
Package.appxmanifest
SampleBackgroundTask.xaml
SampleBackgroundTask.xaml.cs
SampleBackgroundTaskWithCondition.xaml
SampleBackgroundTaskWithCondition.xaml.cs
ServicingCompleteTask.xaml
ServicingCompleteTask.xaml.cs
TimeTriggeredTask.xaml
TimeTriggeredTask.xaml.cs
Tasks
Properties
AssemblyInfo.cs
SampleBackgroundTask.cs
ServicingComplete.cs
Tasks.csproj
BackgroundTask.sln
BackgroundTask
css
default.css
html
javascript-background-task.html
sample-background-task.html
sample-background-task-with-condition.html
servicing-complete.html
time-trigger-background-task.html
images
badgelogo-sdk.png
microsoft-sdk.png
placeholder-sdk.png
smallTile-sdk.png
splash-sdk.png
squareTile-sdk.png
storeLogo-sdk.png
tile-sdk.png
windows-sdk.png
js
backgroundtask.js
default.js
global.js
javascript-background-task.js
sample-background-task.js
sample-background-task-with-condition.js
servicing-complete.js
time-trigger-background-task.js
sample-utils
footer.html
header.html
sample-utils.css
sample-utils.js
scenario-select.html
BackgroundTask.jsproj
default.html
package.appxmanifest
Tasks
Properties
AssemblyInfo.cs
SampleBackgroundTask.cs
ServicingComplete.cs
Tasks.csproj
BackgroundTask.sln
BackgroundTask
Assets
badgelogo-sdk.png
microsoft-sdk.png
placeholder-sdk.png
smallTile-sdk.png
splash-sdk.png
squareTile-sdk.png
storeLogo-sdk.png
tile-sdk.png
windows-sdk.png
common
LayoutAwarePage.cpp
LayoutAwarePage.h
StandardStyles.xaml
suspensionmanager.cpp
suspensionmanager.h
Sample-Utils
SampleTemplateStyles.xaml
App.xaml
App.xaml.cpp
App.xaml.h
BackgroundTask.vcxproj
BackgroundTask.vcxproj.filters
Constants.cpp
Constants.h
MainPage.xaml
MainPage.xaml.cpp
MainPage.xaml.h
Package.appxmanifest
pch.cpp
pch.h
SampleBackgroundTask.xaml
SampleBackgroundTask.xaml.cpp
SampleBackgroundTask.xaml.h
SampleBackgroundTaskWithCondition.xaml
SampleBackgroundTaskWithCondition.xaml.cpp
SampleBackgroundTaskWithCondition.xaml.h
ServicingCompleteTask.xaml
ServicingCompleteTask.xaml.cpp
ServicingCompleteTask.xaml.h
TimeTriggeredTask.xaml
TimeTriggeredTask.xaml.cpp
TimeTriggeredTask.xaml.h
Tasks
BackgroundTask.vcxproj.filters
pch.cpp
pch.h
SampleBackgroundTask.cpp
SampleBackgroundTask.h
ServicingComplete.cpp
ServicingComplete.h
Tasks.vcxproj
BackgroundTask.sln
BackgroundTask
Assets
badgelogo-sdk.png
microsoft-sdk.png
placeholder-sdk.png
smallTile-sdk.png
splash-sdk.png
squareTile-sdk.png
storeLogo-sdk.png
tile-sdk.png
windows-sdk.png
Common
LayoutAwarePage.vb
StandardStyles.xaml
Project
AssemblyInfo.vb
Sample-Utils
SampleTemplateStyles.xaml
SuspensionManager.vb
App.xaml
App.xaml.vb
BackgroundTask.vbproj
Constants.VB
MainPage.xaml
MainPage.xaml.vb
Package.appxmanifest
SampleBackgroundTask.xaml
SampleBackgroundTask.xaml.vb
SampleBackgroundTaskWithCondition.xaml
SampleBackgroundTaskWithCondition.xaml.vb
ServicingCompleteTask.xaml
ServicingCompleteTask.xaml.vb
TimeTriggeredTask.xaml
TimeTriggeredTask.xaml.vb
Tasks
Project
AssemblyInfo.vb
SampleBackgroundTask.vb
ServicingComplete.vb
Tasks.vbproj
BackgroundTask.sln
Click an item in the panel on the left to view the contents here.