BackgroundTaskCanceledEventHandler Delegat

Definition

Stellt eine Methode dar, die den Abbruch einer Hintergrundaufgabe verarbeitet.

public delegate void BackgroundTaskCanceledEventHandler(IBackgroundTaskInstance ^ sender, BackgroundTaskCancellationReason reason);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2797910720, 20984, 19543, 172, 63, 21, 109, 209, 104, 12, 79)]
class BackgroundTaskCanceledEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2797910720, 20984, 19543, 172, 63, 21, 109, 209, 104, 12, 79)]
public delegate void BackgroundTaskCanceledEventHandler(IBackgroundTaskInstance sender, BackgroundTaskCancellationReason reason);
var backgroundTaskCanceledEventHandlerHandler = function(sender, reason){
/* Your code */
}
Public Delegate Sub BackgroundTaskCanceledEventHandler(sender As IBackgroundTaskInstance, reason As BackgroundTaskCancellationReason)

Parameter

sender
IBackgroundTaskInstance

Die Hintergrundaufgabe instance, die abgebrochen wurde.

reason
BackgroundTaskCancellationReason

Der Grund, warum die Hintergrundaufgabe instance abgebrochen wurde.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Gilt für: