Redigera

Dela via


ContractFailedEventArgs Constructor

Definition

Provides data for the ContractFailed event.

public:
 ContractFailedEventArgs(System::Diagnostics::Contracts::ContractFailureKind failureKind, System::String ^ message, System::String ^ condition, Exception ^ originalException);
public ContractFailedEventArgs (System.Diagnostics.Contracts.ContractFailureKind failureKind, string message, string condition, Exception originalException);
public ContractFailedEventArgs (System.Diagnostics.Contracts.ContractFailureKind failureKind, string? message, string? condition, Exception? originalException);
new System.Diagnostics.Contracts.ContractFailedEventArgs : System.Diagnostics.Contracts.ContractFailureKind * string * string * Exception -> System.Diagnostics.Contracts.ContractFailedEventArgs
Public Sub New (failureKind As ContractFailureKind, message As String, condition As String, originalException As Exception)

Parameters

failureKind
ContractFailureKind

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

message
String

The message for the event.

condition
String

The condition for the event.

originalException
Exception

The exception that caused the event.

Applies to