Share via


IDebugExceptionEvent2::GetExceptionDescription

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Gets a displayable description of the exception.

Syntax

HRESULT GetExceptionDescription(   
   BSTR* pbstrDescription  
);  
int GetExceptionDescription(   
   out string pbstrDescription  
);  

Parameters

pbstrDescription
[out] Returns a displayable description of the exception.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

The string returned from this method is typically the name of the exception and is shown in the Output window when the exception occurs.

See Also

IDebugExceptionEvent2