IValidatorExtensionsExecuteAsyncT Method (IValidatorT, T) |  |
Validates the given value asynchronously and returns the validation results.
Namespace:
Xploration.Validation
Assembly:
Xploration.Validation (in Xploration.Validation.dll) Version: 1.0.0-alpha1
Syntaxpublic static Task<IEnumerable<ValidationResult>> ExecuteAsync<T>(
this IValidator<T> validator,
T value
)
<ExtensionAttribute>
Public Shared Function ExecuteAsync(Of T) (
validator As IValidator(Of T),
value As T
) As Task(Of IEnumerable(Of ValidationResult))
[<ExtensionAttribute>]
static member ExecuteAsync :
validator : IValidator<'T> *
value : 'T -> Task<IEnumerable<ValidationResult>>
Parameters
- validator
- Type: Xploration.ValidationIValidatorT
The current validator. - value
- Type: T
The value to validate.
Type Parameters
- T
- The type to validate.
Return Value
Type:
TaskIEnumerableValidationResultA collection of validation results.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IValidatorT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions
See Also