为指定的 ExceptionSetting 启用或禁用 BreakWhenThrown 属性。 ExceptionSetting 对象所传入的属性现在将反映此值。
命名空间:  EnvDTE90
程序集:  EnvDTE90(在 EnvDTE90.dll 中)
语法
声明
Sub SetBreakWhenThrown ( _
    BreakWhenThrown As Boolean, _
    ExceptionSetting As ExceptionSetting _
)
void SetBreakWhenThrown(
    bool BreakWhenThrown,
    ExceptionSetting ExceptionSetting
)
void SetBreakWhenThrown(
    [InAttribute] bool BreakWhenThrown, 
    [InAttribute] ExceptionSetting^ ExceptionSetting
)
abstract SetBreakWhenThrown : 
        BreakWhenThrown:bool * 
        ExceptionSetting:ExceptionSetting -> unit 
function SetBreakWhenThrown(
    BreakWhenThrown : boolean, 
    ExceptionSetting : ExceptionSetting
)
参数
- BreakWhenThrown
 类型:System.Boolean
 一个布尔值;设置为 true 将启用 BreakWhenThrown 属性,设置为 false 则禁用该属性。
- ExceptionSetting
 类型:EnvDTE90.ExceptionSetting
 要为其启用或禁用 BreakWhenThrown 属性的 ExceptionSetting。
备注
SetBreakWhenThrown 仅在指定的 ExceptionSetting 实例上设置这些值。 ExceptionSetting 只是异常设置值在创建时的快照。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。