IBackgroundTask IBackgroundTask IBackgroundTask IBackgroundTask Interface


Provides a method to perform the work of a background task.

public : interface IBackgroundTask
struct winrt::Windows::ApplicationModel::Background::IBackgroundTask
public interface IBackgroundTask
Public Interface IBackgroundTask
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Run(IBackgroundTaskInstance) Run(IBackgroundTaskInstance) Run(IBackgroundTaskInstance) Run(IBackgroundTaskInstance)

Performs the work of a background task. The system calls this method when the associated background task has been triggered.

public : void Run(IBackgroundTaskInstance taskInstance)
void Run(IBackgroundTaskInstance taskInstance) const;
public void Run(IBackgroundTaskInstance taskInstance)
Public Function Run(taskInstance As IBackgroundTaskInstance) As void
IBackgroundTaskInstance IBackgroundTaskInstance

An interface to an instance of the background task. The system creates this instance when the task has been triggered to run.