Click or drag to resize

ValidatorTValidateAsync Method (ValidationContextT)

Validates the given ValidationContext asynchronously and determines if the context is valid.

Namespace:  Xploration.Validation
Assembly:  Xploration.Validation (in Xploration.Validation.dll) Version: 1.0.0-alpha1
Syntax
public virtual Task<bool> ValidateAsync(
	ValidationContext<T> context
)

Parameters

context
Type: Xploration.ValidationValidationContextT
The context to validate.

Return Value

Type: TaskBoolean
True if the given ValidationContext is valid, otherwise false.

Implements

IValidatorTValidateAsync(ValidationContextT)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when the given value for the context parameter is null.
Remarks
Important note Important
Validation results must be registerd to the given context. See Results and AllResults
See Also