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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om