System.Diagnostics.Contracts.ContractFailedEventArgs Members

The members of System.Diagnostics.Contracts.ContractFailedEventArgs are listed below.

See Also: Inherited members from System.EventArgs

Public Constructors

Public Properties

[read-only]
Conditionstring.

Gets the condition for the failure of the contract.

[read-only]
FailureKindContractFailureKind.

Gets the type of contract that failed.

[read-only]
Handledbool.

Indicates whether the Contract.ContractFailed event has been handled.

[read-only]
Messagestring.

Gets the message that describes the Contract.ContractFailed event.

[read-only]
OriginalExceptionException.

Gets the original exception that caused the Contract.ContractFailed event.

[read-only]
Unwindbool.

Indicates whether the code contract escalation policy should be applied.

Public Methods

SetHandled()

Sets the ContractFailedEventArgs.Handled property to true.

SetUnwind()

Sets the ContractFailedEventArgs.Unwind property to true.