System.Diagnostics.Contracts.ContractFailedEventArgs: Property Members

The properties of System.Diagnostics.Contracts.ContractFailedEventArgs are listed below. For a list of all members, see the ContractFailedEventArgs Members list.

See Also: Inherited members from System.EventArgs

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.