ContractFailedEventArgs.Condition Property

.NET Framework (current version)

Gets the condition for the failure of the contract.

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

public string Condition { get; }

Property Value

Type: System.String

The condition for the failure.

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