IGuardedOperations.HandleException(Object, Exception) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.