Table of Contents

Class RequiredValidationRule

Namespace
The.Values
Assembly
Instagile.dll

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

message string
scope ValidationScope

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>