ContractFailedEventArgs.SetUnwind Method ()

.NET Framework (current version)

Sets the ContractFailedEventArgs.Unwind property to true.

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

public void SetUnwind()

The SetUnwind method provides a way to indicate that the escalation policy for the code contract should be applied. See the ContractFailedEventArgs.Unwind property for more information.


requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top