ContractFailedEventArgs Constructor
Collapse the table of content
Expand the table of content

ContractFailedEventArgs Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft