次の方法で共有


IGuardedOperations.HandleException(Object, Exception) Method

Definition

Handles an exception occured in a call to an extension point.

public:
 void HandleException(System::Object ^ errorSource, Exception ^ e);
public void HandleException (object errorSource, Exception e);
abstract member HandleException : obj * Exception -> unit
Public Sub HandleException (errorSource As Object, e As Exception)

Parameters

errorSource
Object

Reference to the extension object or event handler that threw the exception

e
Exception

Exception to handle

Remarks

This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code. In Visual Studio, this method logs the exception to ActivityLogs and the telemetry, and displays an error message to the user if possible. This method can be invoked from any thread.

Applies to