Partager via


IExtensionErrorHandler.HandleError(Object, Exception) Method

Definition

Logs an exception to ActivityLogs and the telemetry, and notifies that an exception has occured.

public:
 void HandleError(System::Object ^ sender, Exception ^ exception);
public void HandleError (object sender, Exception exception);
abstract member HandleError : obj * Exception -> unit
Public Sub HandleError (sender As Object, exception As Exception)

Parameters

sender
Object

The extension object or event handler that threw the exception.

exception
Exception

The exception that was thrown.

Applies to