EditContext.Validate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Validate is obsolete. Use ValidateAsync instead.
Validates this EditContext synchronously.
public:
bool Validate();
public bool Validate();
[System.Obsolete("Validate is obsolete. Use ValidateAsync instead.")]
public bool Validate();
member this.Validate : unit -> bool
[<System.Obsolete("Validate is obsolete. Use ValidateAsync instead.")>]
member this.Validate : unit -> bool
Public Function Validate () As Boolean
Returns
true if there are no validation messages after validation; otherwise false.
- Attributes
Exceptions
A handler registered an asynchronous validation task.
Remarks
Runs synchronous validators only. A handler that registers asynchronous work via AddAsyncValidator(Func<CancellationToken,Task>) causes an InvalidOperationException; use ValidateAsync(CancellationToken) for async validators. Do not call validation re-entrantly from a validation handler.