Dela via


IBackgroundTask Interface

Definition

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

public interface class IBackgroundTask
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2098451764, 64786, 17358, 140, 34, 234, 31, 241, 60, 6, 223)]
struct IBackgroundTask
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2098451764, 64786, 17358, 140, 34, 234, 31, 241, 60, 6, 223)]
public interface IBackgroundTask
Public Interface IBackgroundTask
Derived
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Methods

Run(IBackgroundTaskInstance)

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

Applies to