Class User_AccountEditor
Inherited Members
Namespace: DataWeb.Data.Controls
Assembly: DataWeb.Core.dll
Syntax
public class User_AccountEditor : Control
Constructors
User_AccountEditor(Form, IServiceProvider)
Declaration
public User_AccountEditor(Form form, IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
Form | form | |
IServiceProvider | serviceProvider |
Methods
IsUpdateDataAsync(object, List<ProvidedValue>, Dictionary<string, object>, IUser, string, NavigationContext, CancellationToken)
Determines whether data is updated on this control.
Declaration
public override Task<bool> IsUpdateDataAsync(object value, List<Form.ProvidedValue> providedValues, Dictionary<string, object> sectionData, IUser user, string itemId = null, NavigationContext navigationContext = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
object | value | The value of the control. |
List<Form.ProvidedValue> | providedValues | A list of values provided for other controls on the form. |
Dictionary<string, object> | sectionData | The section data of the form. |
IUser | user | The IUser saving the form. |
string | itemId | The Id of the item being edited (null if adding new). |
NavigationContext | navigationContext | The NavigationContext of the form. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | True if data is updated on this control, otherwise false. |
Overrides
ValidateAsync(object, List<ProvidedValue>, Dictionary<string, object>, IUser, string, NavigationContext, CancellationToken)
Validates the control asynchronously.
Declaration
public override Task<List<ValidationError>> ValidateAsync(object value, List<Form.ProvidedValue> providedValues, Dictionary<string, object> sectionData, IUser user, string itemId = null, NavigationContext navigationContext = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
object | value | The value of the control to validate. |
List<Form.ProvidedValue> | providedValues | The provided Form.ProvidedValue values. |
Dictionary<string, object> | sectionData | The section data. |
IUser | user | The IUser that is requesting the validation. |
string | itemId | The Id of the item that the control is associated with. |
NavigationContext | navigationContext | The NavigationContext of the form. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<ValidationError>> | The validation errors, if any. |