UnhandledExceptionEventHandler UnhandledExceptionEventHandler UnhandledExceptionEventHandler UnhandledExceptionEventHandler Delegate

Definition

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::nullptr_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::Foundation::IInspectable const& sender, winrt::Windows::UI::Xaml::UnhandledExceptionEventArgs const& e) const;
};
public delegate void UnhandledExceptionEventHandler(Object sender, UnhandledExceptionEventArgs e)
Public Delegate Sub UnhandledExceptionEventHandler(sender As Object, e As UnhandledExceptionEventArgs)

Parameters

sender
Object Object

The object where the handler is attached.

Attributes

Windows 10 requirements

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

Remarks

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