ContractFailedEventArgs.Unwind 属性
定义
指示是否应该应用代码协定升级策略。Indicates whether the code contract escalation policy should be applied.
public:
property bool Unwind { bool get(); };
public bool Unwind { get; }
member this.Unwind : bool
Public ReadOnly Property Unwind As Boolean
属性值
若为 true,则应用升级策略;否则为 false。true to apply the escalation policy; otherwise, false. 默认值为 false。The default is false.
注解
如果返回值为 true ,则升级策略将通知附加调试器有关协定失败的信息,或者,如果未附加调试器,则显示 " 断言 " 对话框。If the return value is true, the escalation policy is to notify the attached debugger about a contract failure or to display an Assert dialog box if a debugger is not attached.
警告
false对于在服务器上运行的分析工具,此值应设置为 (例如 ASP.NET) 。This value should be set to false for analysis tools that run on a server (for example, ASP.NET).