Table of Contents

Class ParseValidationRule

Namespace
The.Values
Assembly
Instagile.dll

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

message string

Properties

IsAsyncRule

public bool IsAsyncRule { get; }

Property Value

bool

Message

public string Message { get; }

Property Value

string

Scope

public ValidationScope Scope { get; }

Property Value

ValidationScope

Methods

Evaluate(IValidatable)

public ValidationResult Evaluate(IValidatable subject)

Parameters

subject IValidatable

Returns

ValidationResult

EvaluateAsync(IValidatable)

public Task<ValidationResult> EvaluateAsync(IValidatable subject)

Parameters

subject IValidatable

Returns

Task<ValidationResult>