BackgroundTaskRegistration.Progress Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attaches a progress event handler to the registered background task.
public:
virtual event BackgroundTaskProgressEventHandler ^ Progress;
// Register
event_token Progress(BackgroundTaskProgressEventHandler const& handler) const;
// Revoke with event_token
void Progress(event_token const* cookie) const;
// Revoke with event_revoker
BackgroundTaskRegistration::Progress_revoker Progress(auto_revoke_t, BackgroundTaskProgressEventHandler const& handler) const;
public event BackgroundTaskProgressEventHandler Progress;
function onProgress(eventArgs) { /* Your code */ }
backgroundTaskRegistration.addEventListener("progress", onProgress);
backgroundTaskRegistration.removeEventListener("progress", onProgress);
- or -
backgroundTaskRegistration.onprogress = onProgress;
Public Custom Event Progress As BackgroundTaskProgressEventHandler Implements Progress