BackgroundTaskProgressEventHandler BackgroundTaskProgressEventHandler BackgroundTaskProgressEventHandler BackgroundTaskProgressEventHandler BackgroundTaskProgressEventHandler Delegate

Definition

Represents a method that handles progress update events for a background task.

public : delegate void BackgroundTaskProgressEventHandler(BackgroundTaskRegistration sender, BackgroundTaskProgressEventArgs args)
struct BackgroundTaskProgressEventHandler : winrt::Windows::Foundation::IUnknown
{
   BackgroundTaskProgressEventHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> BackgroundTaskProgressEventHandler(L lambda);
   template <typename F> BackgroundTaskProgressEventHandler(F* function);
   template <typename O, typename M> BackgroundTaskProgressEventHandler(O* object, M method);
   void operator()(winrt::Windows::ApplicationModel::Background::BackgroundTaskRegistration const& sender, winrt::Windows::ApplicationModel::Background::BackgroundTaskProgressEventArgs const& args) const;
};
public delegate void BackgroundTaskProgressEventHandler(BackgroundTaskRegistration sender, BackgroundTaskProgressEventArgs args)
Public Delegate Sub BackgroundTaskProgressEventHandler(sender As BackgroundTaskRegistration, args As BackgroundTaskProgressEventArgs)
var backgroundTaskProgressEventHandler = function(sender, args) {

 /* Your code */

}
Parameters
args
BackgroundTaskProgressEventArgs BackgroundTaskProgressEventArgs BackgroundTaskProgressEventArgs

Progress information for the task at the time the notification is sent.

Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Progress update events are delivered only while the application is in the foreground.