Delegate PropertyValidationDelegateAsync<TValue>
A delegate that can be passed to a TrySetValueAsync<TValue>(TValue, TValue, Func<TValue, Task<(Boolean IsValid, IEnumerable<Object> ErrorMessages)>>, SetBackingFieldDelegate<TValue>, ViewModelCommon.SetValueOptions, IEqualityComparer<TValue>, String) and overload
to provide a custom asynchroous validation method.
Namespace: BionicCode.Utilities.Net
Assembly: BionicCode.Utilities.Net.Common.dll
Syntax
public delegate Task<PropertyValidationResult> PropertyValidationDelegateAsync<TValue>(TValue propertyValue);
Parameters
| Type | Name | Description |
|---|---|---|
| TValue | propertyValue | The value to validate. |
Returns
| Type | Description |
|---|---|
| Task<PropertyValidationResult> | The validation result. |
Type Parameters
| Name | Description |
|---|---|
| TValue | The type of the value to validate. |