LeavingBackgroundEventHandler LeavingBackgroundEventHandler LeavingBackgroundEventHandler LeavingBackgroundEventHandler Delegate

Definition

Represents the method that will handle the Application.LeavingBackground event.

public : delegate void LeavingBackgroundEventHandler(Platform::Object sender, LeavingBackgroundEventArgs 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::LeavingBackgroundEventArgs const& e) const;
};
public delegate void LeavingBackgroundEventHandler(Object sender, LeavingBackgroundEventArgs e)
Public Delegate Sub LeavingBackgroundEventHandler(sender As Object, e As LeavingBackgroundEventArgs)

Parameters

sender
Object Object

The object where the handler is attached.

Attributes

Windows 10 requirements

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