SaveRequestHandlerAsync<TRow,TSaveRequest,TSaveResponse>.ValidateFieldValueAsync method
Checks the value of a field by a validation rule asynchronously, see CancellationToken).
protected virtual ValueTask<string?> ValidateFieldValueAsync(Field field, ValidationAttribute rule,
object? value, ValidationContext context, CancellationToken cancellationToken)
| parameter | description |
|---|---|
| field | The field. |
| rule | The rule. |
| value | The value of the field. |
| context | The context, of the row, for the field. |
| cancellationToken | The cancellation token. |
Return Value
The validation error message, or null if the value is valid.