Freigeben über


IExtensionErrorHandler2.LogError(Object, Exception) Method

Definition

Logs an exception to ActivityLogs and the telemetry.

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

Parameters

sender
Object

The extension object or event handler that threw the exception.

exception
Exception

The exception to log.

Applies to