SuspendingEventHandler SuspendingEventHandler SuspendingEventHandler SuspendingEventHandler SuspendingEventHandler Delegate

Definition

Represents a method that handles the app suspension event.

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

 /* Your code */

}

Parameters

sender
Object Object Object

The sender.

Attributes

Windows 10 requirements

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

See also