共用方式為


EXCEPTION_INFO

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

Describes an exception or run-time error thrown by the program being debugged.

Syntax

typedef struct tagEXCEPTION_INFO {
    IDebugProgram2* pProgram;
    BSTR            bstrProgramName;
    BSTR            bstrExceptionName;
    DWORD           dwCode;
    EXCEPTION_STATE dwState;
    GUID            guidType;
} EXCEPTION_INFO;
public struct EXCEPTION_INFO {
    public IDebugProgram2 pProgram;
    public string         bstrProgramName;
    public string         bstrExceptionName;
    public uint           dwCode;
    public uint           dwState;
    public Guid           guidType;
};

Members

pProgram
The IDebugProgram2 object that represents the program in which the exception occurred.

bstrProgramName
The name of the program in which the exception occurred.

bstrExceptionName
The name of the exception.

dwCode
The identification code for the exception or run-time error.

dwState
A value from the EXCEPTION_STATE enumeration that defines the state of the exception.

guidType
The GUID language identifier, either guidLang or guidEng.

Remarks

This structure is passed as a parameter to the SetException and the RemoveSetException methods. This structure is also passed to the GetException method to be filled in.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also