ContractFailedEventArgs Constructor (ContractFailureKind, String^, String^, Exception^)

.NET Framework (current version)
 

Provides data for the Contract::ContractFailed event.

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

public:
ContractFailedEventArgs(
	ContractFailureKind failureKind,
	String^ message,
	String^ condition,
	Exception^ originalException
)

Parameters

failureKind
Type: System.Diagnostics.Contracts::ContractFailureKind

One of the enumeration values that specifies the contract that failed.

message
Type: System::String^

The message for the event.

condition
Type: System::String^

The condition for the event.

originalException
Type: System::Exception^

The exception that caused the event.

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
Show: