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
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.