Class ParseValidationRule
Validation rule which fails when the text input into the field cannot be parsed into the correct type
public sealed class ParseValidationRule : IValidationRule
- Inheritance
-
ParseValidationRule
- Implements
- Inherited Members
Remarks
Many of the input controls will validate this by default, but by creating an explicit validation rule, one can control the message that is displayed
Constructors
ParseValidationRule(string)
public ParseValidationRule(string message)
Parameters
messagestring
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