Method AddAsyncValidator
| Improve this Doc View SourceAddAsyncValidator(IScalars, Func<Task<String>>, String)
Adds async scalar validator.
Declaration
public T AddAsyncValidator(IScalars sourceScalars, Func<Task<string>> validator, string displayName)
Parameters
Type | Name | Description |
---|---|---|
IScalars | sourceScalars | The source scalar data. |
System.Func<System.Threading.Tasks.Task<System.String>> | validator | Delegate to perform validation. |
System.String | displayName | The display name used for fault error message. |
Returns
Type | Description |
---|---|
T | This template builder for fluent coding. |
AddAsyncValidator(IScalars, Func<Task<IEnumerable<String>>>, String)
Adds async scalar validator.
Declaration
public T AddAsyncValidator(IScalars sourceScalars, Func<Task<IEnumerable<string>>> validator, string displayName)
Parameters
Type | Name | Description |
---|---|---|
IScalars | sourceScalars | The source scalar data. |
System.Func<System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>>> | validator | Delegate to perform validation. |
System.String | displayName | The display name used for fault error message. |
Returns
Type | Description |
---|---|
T | This template builder for fluent coding. |
AddAsyncValidator<TElement>(ScalarInput<TElement>, Func<Task<String>>, String)
Adds async scalar validator.
Declaration
public T AddAsyncValidator<TElement>(ScalarInput<TElement> input, Func<Task<string>> validator, string displayName)
where TElement : UIElement, new()
Parameters
Type | Name | Description |
---|---|---|
ScalarInput<TElement> | input | The scalar input. |
System.Func<System.Threading.Tasks.Task<System.String>> | validator | Delegate to perform validation. |
System.String | displayName | The display name used for fault error message. |
Returns
Type | Description |
---|---|
T | This template builder for fluent coding. |
Type Parameters
Name | Description |
---|---|
TElement |
AddAsyncValidator<TElement>(ScalarInput<TElement>, Func<Task<IEnumerable<String>>>, String)
Adds async scalar validator.
Declaration
public T AddAsyncValidator<TElement>(ScalarInput<TElement> input, Func<Task<IEnumerable<string>>> validator, string displayName)
where TElement : UIElement, new()
Parameters
Type | Name | Description |
---|---|---|
ScalarInput<TElement> | input | The scalar input. |
System.Func<System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>>> | validator | Delegate to perform validation. |
System.String | displayName | The display name used for fault error message. |
Returns
Type | Description |
---|---|
T | This template builder for fluent coding. |
Type Parameters
Name | Description |
---|---|
TElement |