BackgroundTaskCanceledEventHandler
BackgroundTaskCanceledEventHandler
BackgroundTaskCanceledEventHandler
BackgroundTaskCanceledEventHandler
Delegate
Definition
Represents a method that handles the cancellation of a background task.
public : delegate void BackgroundTaskCanceledEventHandler(IBackgroundTaskInstance sender, BackgroundTaskCancellationReason reason)public delegate void BackgroundTaskCanceledEventHandler(IBackgroundTaskInstance sender, BackgroundTaskCancellationReason reason)Public Delegate BackgroundTaskCanceledEventHandler(sender As IBackgroundTaskInstance, reason As BackgroundTaskCancellationReason)// You can use this delegate in JavaScript.
Parameters
- sender
- IBackgroundTaskInstance IBackgroundTaskInstance IBackgroundTaskInstance IBackgroundTaskInstance
The background task instance that was cancelled.
- reason
- BackgroundTaskCancellationReason BackgroundTaskCancellationReason BackgroundTaskCancellationReason BackgroundTaskCancellationReason
The reason the background task instance was cancelled.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|