ContractFailedEventArgs.Unwind Property
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.
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
Property Value
true
to apply the escalation policy; otherwise, false
. The default is false
.
Remarks
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.
Warning
This value should be set to false
for analysis tools that run on a server (for example, ASP.NET).
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про