OnContractViolated(dynamic?, dynamic, ContractContext)
Template method called when the contract validation fails. Override to customize the error behavior.
Declaration
protected override void OnContractViolated(dynamic? value, dynamic regex, ContractContext context)Parameters
| Type | Name | Description |
|---|---|---|
| dynamic | value | The value that failed validation. |
| dynamic | regex | The regular expression that was not matched. |
| ContractContext | context | The contract context. |