ExceptionSettings.SetBreakWhenUserUnhandled 方法

为指定的 ExceptionSetting 启用或禁用 BreakWhenUserUnhandled 属性。 ExceptionSetting 对象所传入的属性现在将反映此值。

命名空间:  EnvDTE90
程序集:  EnvDTE90(在 EnvDTE90.dll 中)

语法

声明
Sub SetBreakWhenUserUnhandled ( _
    BreakWhenUserUnhandled As Boolean, _
    ExceptionSetting As ExceptionSetting _
)
void SetBreakWhenUserUnhandled(
    bool BreakWhenUserUnhandled,
    ExceptionSetting ExceptionSetting
)
void SetBreakWhenUserUnhandled(
    [InAttribute] bool BreakWhenUserUnhandled, 
    [InAttribute] ExceptionSetting^ ExceptionSetting
)
abstract SetBreakWhenUserUnhandled : 
        BreakWhenUserUnhandled:bool * 
        ExceptionSetting:ExceptionSetting -> unit
function SetBreakWhenUserUnhandled(
    BreakWhenUserUnhandled : boolean, 
    ExceptionSetting : ExceptionSetting
)

参数

  • BreakWhenUserUnhandled
    类型:Boolean

    一个布尔值;设置为 true 将启用 BreakWhenUserUnhandled 属性,设置为 false 则禁用该属性。

备注

SetBreakWhenUserUnhandled 仅适用于托管异常类型。 如果您尝试对本机异常使用此方法,则会收到错误消息“BreakWhenUserUnhandled 仅应用于托管异常类型”。

SetBreakWhenUserUnhandled 仅在指定的 ExceptionSetting 实例上设置这些值。 ExceptionSetting 只是异常设置值在创建时的快照。

.NET Framework 安全性

请参阅

参考

ExceptionSettings 接口

EnvDTE90 命名空间

其他资源

自动化对象模型图表