Class RequiredValidationRule
Validation Rule which checks whether the field has a value
public sealed class RequiredValidationRule : IValidationRule
- Inheritance
-
RequiredValidationRule
- Implements
- Inherited Members
Constructors
RequiredValidationRule(string, ValidationScope?)
public RequiredValidationRule(string message, ValidationScope? scope)
Parameters
messagestringscopeValidationScope
Properties
IsAsyncRule
public bool IsAsyncRule { get; }
Property Value
Message
public string Message { get; }
Property Value
Scope
public ValidationScope Scope { get; }
Property Value
Methods
Evaluate(IValidatable)
public ValidationResult Evaluate(IValidatable subject)
Parameters
subjectIValidatable
Returns
EvaluateAsync(IValidatable)
public Task<ValidationResult> EvaluateAsync(IValidatable subject)
Parameters
subjectIValidatable