System.Diagnostics.Contracts.ContractFailedEventArgs.Unwind Property

Indicates whether the code contract escalation policy should be applied.

Syntax

public bool Unwind { get; }

Value

Whether the contract failure should unwind the stack.

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.

Note:

This value should be set to false for analysis tools that run on a server (for example, ASP.NET).

Requirements

Namespace: System.Diagnostics.Contracts
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0