BackgroundTaskProgressEventHandler Delegat

Definition

Stellt eine Methode dar, die Statusaktualisierungsereignisse für eine Hintergrundaufgabe verarbeitet.

public delegate void BackgroundTaskProgressEventHandler(BackgroundTaskRegistration ^ sender, BackgroundTaskProgressEventArgs ^ args);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1189111868, 35464, 19609, 128, 76, 118, 137, 127, 98, 119, 166)]
class BackgroundTaskProgressEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1189111868, 35464, 19609, 128, 76, 118, 137, 127, 98, 119, 166)]
public delegate void BackgroundTaskProgressEventHandler(BackgroundTaskRegistration sender, BackgroundTaskProgressEventArgs args);
var backgroundTaskProgressEventHandlerHandler = function(sender, args){
/* Your code */
}
Public Delegate Sub BackgroundTaskProgressEventHandler(sender As BackgroundTaskRegistration, args As BackgroundTaskProgressEventArgs)

Parameter

sender
BackgroundTaskRegistration

Die Hintergrundaufgabe.

args
BackgroundTaskProgressEventArgs

Statusinformationen für die Aufgabe zum Zeitpunkt des Sendens der Benachrichtigung.

Attribute

Windows-Anforderungen

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

Hinweise

Statusaktualisierungsereignisse werden nur übermittelt, wenn sich die Anwendung im Vordergrund befindet.

Gilt für: