次の方法で共有


IDebugExceptionEvent2::GetException

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. 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 detailed description of the exception that fired this event.

Syntax

HRESULT GetException( 
   EXCEPTION_INFO* pExceptionInfo
);
int GetException( 
   EXCEPTION_INFO[] pExceptionInfo
);

Parameters

pExceptionInfo
[in, out] An EXCEPTION_INFO structure that is filled in with the description of the exception.

Return Value

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

Remarks

[C++ only] The caller is responsible for freeing any strings in the EXCEPTION_INFO structure as well as releasing the IDebugProgram2 object in the structure.

See also