ActivatedEventHandler ActivatedEventHandler ActivatedEventHandler ActivatedEventHandler ActivatedEventHandler Delegate

Definition

Represents a method that handles the app activation event.

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

 /* Your code */

}
Parameters
sender
Object Object Object

The sender.

eventArgs
IActivatedEventArgs IActivatedEventArgs IActivatedEventArgs

The event information. The data type depends on why the app was activated. For a list of possible data types, see the ActivationKind enumeration.

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

See Also