ExceptionSettings.SetBreakWhenUserUnhandled(Boolean, ExceptionSetting) 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.
Enables or disables the BreakWhenUserUnhandled property for the specified ExceptionSetting. The property passed in by the ExceptionSetting object will now reflect this value.
public:
void SetBreakWhenUserUnhandled(bool BreakWhenUserUnhandled, EnvDTE90::ExceptionSetting ^ ExceptionSetting);
public:
void SetBreakWhenUserUnhandled(bool BreakWhenUserUnhandled, EnvDTE90::ExceptionSetting ^ ExceptionSetting);
void SetBreakWhenUserUnhandled(bool BreakWhenUserUnhandled, EnvDTE90::ExceptionSetting const & ExceptionSetting);
[System.Runtime.InteropServices.DispId(204)]
public void SetBreakWhenUserUnhandled (bool BreakWhenUserUnhandled, EnvDTE90.ExceptionSetting ExceptionSetting);
[<System.Runtime.InteropServices.DispId(204)>]
abstract member SetBreakWhenUserUnhandled : bool * EnvDTE90.ExceptionSetting -> unit
Public Sub SetBreakWhenUserUnhandled (BreakWhenUserUnhandled As Boolean, ExceptionSetting As ExceptionSetting)
Parameters
- BreakWhenUserUnhandled
- Boolean
A boolean value; true
to enable the BreakWhenUserUnhandled property, false
to disable it.
- ExceptionSetting
- ExceptionSetting
The ExceptionSetting for which to enable or disable the BreakWhenUserUnhandled property.
- Attributes
Remarks
SetBreakWhenUserUnhandled applies only to managed exception types. If you attempt to use this method on a native exception, you will get the error message, "BreakWhenUserUnhandled only applies to managed exception types."
SetBreakWhenUserUnhandled sets the values only on the specified ExceptionSetting instance. An ExceptionSetting is only a snapshot of the exception setting values at the time it is created.