Sdílet prostřednictvím


DkmExceptionCodeTrigger Class

Definition

Describe an exception that a component wants to break on by its exception code. Code triggers are used for exception categories which use exception codes to identify exceptions (ex: Win32 exceptions). Code triggers will not fire for exception categories which use a name string to identify exceptions (ex: CLR exceptions).

public ref class DkmExceptionCodeTrigger : Microsoft::VisualStudio::Debugger::Exceptions::DkmExceptionTrigger
[Windows::Foundation::Metadata::WebHostHidden]
public ref class DkmExceptionCodeTrigger : Microsoft::VisualStudio::Debugger::Exceptions::DkmExceptionTrigger
[Windows::Foundation::Metadata::WebHostHidden]
class DkmExceptionCodeTrigger : Microsoft::VisualStudio::Debugger::Exceptions::DkmExceptionTrigger
[System.Runtime.InteropServices.Guid("4862250b-5bf2-b9f9-4da6-6fdd7e39b841")]
public class DkmExceptionCodeTrigger : Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionTrigger
[<System.Runtime.InteropServices.Guid("4862250b-5bf2-b9f9-4da6-6fdd7e39b841")>]
type DkmExceptionCodeTrigger = class
    inherit DkmExceptionTrigger
Public Class DkmExceptionCodeTrigger
Inherits DkmExceptionTrigger
Inheritance
DkmExceptionCodeTrigger
Attributes

Properties

Code

32-bit integer code for the exception. For Win32 exceptions, this is the code passed to RaiseException (ex:EXCEPTION_ACCESS_VIOLATION). This value is zero for exception categories that identify exceptions by string (ex: CLR).

ExceptionCategory

Indicates the type of exception.

ExceptionConditionInfo

[Optional] Exception condition information.

This API was introduced in Visual Studio 15 RTM (DkmApiVersion.VS15RTM).

(Inherited from DkmExceptionTrigger)
ProcessingStage

The debugger receives notifications from the target process at various stages within exception processing (ex: exception thrown, exception unhandled). This enumeration is a bit mask of which of these stages the trigger should fire for.

(Inherited from DkmExceptionTrigger)
TagValue

DkmExceptionTrigger is an abstract base class. This enum indicates which derived class this object is an instance of.

(Inherited from DkmExceptionTrigger)
Thread

[Optional] Thread on which this trigger applies. If null, the trigger will be examined for all threads.

(Inherited from DkmExceptionTrigger)

Methods

Create(DkmExceptionProcessingStage, DkmThread, Guid, UInt32)

Create a new DkmExceptionCodeTrigger object instance.

Create(DkmExceptionProcessingStage, DkmThread, ReadOnlyCollection<DkmExceptionConditionInfo>, Guid, UInt32)

Create a new DkmExceptionCodeTrigger object instance.

This API was introduced in Visual Studio 15 RTM (DkmApiVersion.VS15RTM).

Applies to