Breyta

Deila með


ContractFailedEventArgs.Unwind Property

Definition

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