IAsyncValidationContext interface
Namespace: NextDesign.Core
Description
Context for asynchronous validation.
Affiliation area
Name | Description |
---|---|
Model | APIs to access the model. |
Property
Name | Description |
---|---|
CancellationToken | Gets the cancellation token. |
CancellationTokenSource | Gets the source object of the cancellation token. |
IsCancelRequested | Checks if cancellation has been requested for a validation running in the context. |
Options | Gets validation options. This validation option is a snapshot of the validation options specified during context creation. Even if you change the setting for the option acquired here, it will not be reflected in the verification process. |
Result | Gets the validation result. However, null is returned if validation has not been performed or is being performed. |
State | Gets the running state of the validation. |
TargetModel | Gets the origin model to validate. |
Method
Name | Description |
---|---|
Cancel | Cancels the validation running in the context. |
RegisterOnFinish | Registers an additional verification action to run only once at the end of verification. |
RegisterOnModelValidate | Registers additional validation actions to perform during model validation. |
RegisterOnStart | Registers an additional verification action to run only once when verification starts. |
ValidateAsync | Validate asynchronously. For more information on validation, see the IModel Validate(ValidationOptions options) method. |