ContractFailedEventArgs Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.