BackgroundTaskCompletedEventHandler 代理人

定義

バックグラウンド タスクの完了イベントを処理するメソッドを表します。

public delegate void BackgroundTaskCompletedEventHandler(BackgroundTaskRegistration ^ sender, BackgroundTaskCompletedEventArgs ^ args);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1530456361, 41094, 18087, 166, 120, 67, 145, 53, 130, 43, 207)]
class BackgroundTaskCompletedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1530456361, 41094, 18087, 166, 120, 67, 145, 53, 130, 43, 207)]
public delegate void BackgroundTaskCompletedEventHandler(BackgroundTaskRegistration sender, BackgroundTaskCompletedEventArgs args);
var backgroundTaskCompletedEventHandlerHandler = function(sender, args){
/* Your code */
}
Public Delegate Sub BackgroundTaskCompletedEventHandler(sender As BackgroundTaskRegistration, args As BackgroundTaskCompletedEventArgs)

パラメーター

sender
BackgroundTaskRegistration

バックグラウンド タスク。

args
BackgroundTaskCompletedEventArgs

通知が送信された時点でのタスクの完了情報。

属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

完了イベントは、アプリケーションがフォアグラウンドの間にタスクが完了した場合にのみ配信されます。 アプリケーションが中断され、終了した場合、完了状態は配信されません。 アプリケーションが中断され、再開された場合は、完了通知を受け取る必要があります。

適用対象