IBackgroundTask
IBackgroundTask
IBackgroundTask
IBackgroundTask
Interface
Definition
Provides a method to perform the work of a background task.
public : interface IBackgroundTaskpublic interface IBackgroundTaskPublic Interface IBackgroundTask// This API is not available in Javascript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Methods
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)public void Run(IBackgroundTaskInstance taskInstance)Public Function Run(taskInstance As IBackgroundTaskInstance) As void// This API is not available in Javascript.
Parameters
- taskInstance
- IBackgroundTaskInstance IBackgroundTaskInstance IBackgroundTaskInstance IBackgroundTaskInstance
An interface to an instance of the background task. The system creates this instance when the task has been triggered to run.