LeavingBackgroundEventHandler LeavingBackgroundEventHandler LeavingBackgroundEventHandler LeavingBackgroundEventHandler LeavingBackgroundEventHandler Delegate

Definition

Represents a method that handles the leaving background event.

public : delegate void LeavingBackgroundEventHandler(Platform::Object sender, ILeavingBackgroundEventArgs e)
struct LeavingBackgroundEventHandler : winrt::Windows::Foundation::IUnknown
{
   LeavingBackgroundEventHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> LeavingBackgroundEventHandler(L lambda);
   template <typename F> LeavingBackgroundEventHandler(F* function);
   template <typename O, typename M> LeavingBackgroundEventHandler(O* object, M method);
   void operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::ApplicationModel::ILeavingBackgroundEventArgs const& e) const;
};
public delegate void LeavingBackgroundEventHandler(Object sender, ILeavingBackgroundEventArgs e)
Public Delegate Sub LeavingBackgroundEventHandler(sender As Object, e As ILeavingBackgroundEventArgs)
var leavingBackgroundEventHandler = function(sender, e) {

 /* Your code */

}

Parameters

sender
Object Object Object

The object that fired the event.

Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)