PolymorphicPropertyValidator<T>.

ValidateAsync(PropertyValidatorContext, CancellationToken) Method

Summary

validate as an asynchronous operation.

Syntax

public override Task<IEnumerable<ValidationFailure>> ValidateAsync(PropertyValidatorContext context, CancellationToken cancellation)

Attributes

Type Description
AsyncStateMachineAttribute

Parameters

Name Type Description
context PropertyValidatorContext The context.
cancellation CancellationToken The cancellation.

Return Value

Type Description
Task<IEnumerable<ValidationFailure>> Task{IEnumerable{ValidationFailure}}.