IBackgroundTask IBackgroundTask IBackgroundTask Interface

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

Syntax

Declaration

public interface IBackgroundTaskpublic interface IBackgroundTaskPublic Interface IBackgroundTask

Methods summary

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

Methods

  • Run(Windows.ApplicationModel.Background.IBackgroundTaskInstance)
    Run(Windows.ApplicationModel.Background.IBackgroundTaskInstance)
    Run(Windows.ApplicationModel.Background.IBackgroundTaskInstance)
    Run(Windows.ApplicationModel.Background.IBackgroundTaskInstance)

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

    public void Run(Windows.ApplicationModel.Background.IBackgroundTaskInstance taskInstance)public void Run(Windows.ApplicationModel.Background.IBackgroundTaskInstance taskInstance)Public Function Run(taskInstance As Windows.ApplicationModel.Background.IBackgroundTaskInstance) As void

    Parameters

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.GuidAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.ApplicationModel.Background.dll