Method AddAsyncValidator
| Improve this Doc View SourceAddAsyncValidator(IColumns, Func<DataRow, Task<String>>, String)
Adds async validator.
Declaration
public DataPresenter.TemplateBuilder AddAsyncValidator(IColumns sourceColumns, Func<DataRow, Task<string>> validator, string displayName = null)
Parameters
Type | Name | Description |
---|---|---|
IColumns | sourceColumns | The source columns of the validator. |
System.Func<DataRow, System.Threading.Tasks.Task<System.String>> | validator | The delegate to perform validation. |
System.String | displayName | The display name of the validator. |
Returns
Type | Description |
---|---|
DataPresenter.TemplateBuilder | This template builder for fluent coding. |
AddAsyncValidator(IColumns, Func<DataRow, Task<IEnumerable<String>>>, String)
Adds async validator.
Declaration
public DataPresenter.TemplateBuilder AddAsyncValidator(IColumns sourceColumns, Func<DataRow, Task<IEnumerable<string>>> validator, string displayName = null)
Parameters
Type | Name | Description |
---|---|---|
IColumns | sourceColumns | The source columns of the validator. |
System.Func<DataRow, System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>>> | validator | The delegate to perform validation. |
System.String | displayName | The display name of the validator. |
Returns
Type | Description |
---|---|
DataPresenter.TemplateBuilder | This template builder for fluent coding. |
AddAsyncValidator<T>(RowInput<T>, Func<DataRow, Task<String>>, String)
Adds async validator.
Declaration
public DataPresenter.TemplateBuilder AddAsyncValidator<T>(RowInput<T> input, Func<DataRow, Task<string>> validator, string displayName = null)
where T : UIElement, new()
Parameters
Type | Name | Description |
---|---|---|
RowInput<T> | input | The row input. |
System.Func<DataRow, System.Threading.Tasks.Task<System.String>> | validator | The delegate to perform validation. |
System.String | displayName | The display name of the validator. |
Returns
Type | Description |
---|---|
DataPresenter.TemplateBuilder | This template builder for fluent coding. |
Type Parameters
Name | Description |
---|---|
T |
AddAsyncValidator<T>(RowInput<T>, Func<DataRow, Task<IEnumerable<String>>>, String)
Adds async validator.
Declaration
public DataPresenter.TemplateBuilder AddAsyncValidator<T>(RowInput<T> input, Func<DataRow, Task<IEnumerable<string>>> validator, string displayName = null)
where T : UIElement, new()
Parameters
Type | Name | Description |
---|---|---|
RowInput<T> | input | The row input. |
System.Func<DataRow, System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>>> | validator | The delegate to perform validation. |
System.String | displayName | The display name of the validator. |
Returns
Type | Description |
---|---|
DataPresenter.TemplateBuilder | This template builder for fluent coding. |
Type Parameters
Name | Description |
---|---|
T |