Interface IRuleWithMessage<TValidated, TParent>
An object which contains both validation rule logic and also can provide a human-readable failure message.
Inherited Members
Namespace: CSF.Validation.Rules
Assembly: CSF.Validation.Abstractions.dll
Syntax
public interface IRuleWithMessage<in TValidated, in TParent> : IRule<TValidated, TParent>, IGetsFailureMessage<TValidated, TParent>
Type Parameters
Name | Description |
---|---|
TValidated | The validated type. |
TParent | The parent validated type. |
Remarks
You are encouraged to read more about how validation message providers are used and selected at the documentation relating to message providers.
See Also
IGetsFailureMessage<TValidated, TParent>
IGetsFailureMessage<TValidated>
IHasFailureMessageUsageCriteria<TValidated>
IHasFailureMessageUsageCriteria<TValidated, TParent>
IRuleWithMessage<TValidated>