UnhandledExceptionEventHandler UnhandledExceptionEventHandler UnhandledExceptionEventHandler UnhandledExceptionEventHandler Delegate


Represents the method that will handle the UnhandledException event.

public : delegate void UnhandledExceptionEventHandler(Platform::Object sender, UnhandledExceptionEventArgs e)
struct UnhandledExceptionEventHandler : winrt::Windows::Foundation::IUnknown
   UnhandledExceptionEventHandler(std::nulptr_t = nullptr) noexcept {}
   template <typename L> UnhandledExceptionEventHandler(L lambda);
   template <typename F> UnhandledExceptionEventHandler(F* function);
   template <typename O, typename M> UnhandledExceptionEventHandler(O* object, M method);
   void operator()(winrt::Windows::UI::Xaml::UnhandledExceptionEventHandler const& sender) const;
public delegate void UnhandledExceptionEventHandler(Object sender, UnhandledExceptionEventArgs e)
Public Delegate UnhandledExceptionEventHandler(sender As Object, e As UnhandledExceptionEventArgs)
Object Object

The object where the handler is attached.

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


For more info on how to write a handler based on this delegate, see Exception handling for in C# or Visual Basic and Remarks in UnhandledException.

See Also