IBackgroundTask 介面

定義

提供執行背景工作的方法。

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
衍生
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

方法

Run(IBackgroundTaskInstance)

執行背景工作的工作。 系統會在觸發相關聯的背景工作時呼叫這個方法。

適用於