EditContext.IsValidationFaulted 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.
Overloads
| Name | Description |
|---|---|
| IsValidationFaulted() |
Returns |
| IsValidationFaulted(FieldIdentifier) |
Returns |
| IsValidationFaulted<TField>(Expression<Func<TField>>) |
Returns |
IsValidationFaulted()
- Source:
- EditContext.cs
Returns true if the most recent form-level pass faulted (a registered validation task threw),
as opposed to merely producing validation messages. A subsequent successful pass clears it; a
caller-cancelled ValidateAsync(CancellationToken) pass preserves it. For per-field faults use the
IsValidationFaulted(FieldIdentifier) overload.
public bool IsValidationFaulted();
member this.IsValidationFaulted : unit -> bool
Public Function IsValidationFaulted () As Boolean
Returns
true if the most recent validation pass faulted; otherwise false.
Applies to
IsValidationFaulted(FieldIdentifier)
- Source:
- EditContext.cs
Returns true if the specified field's last async validation faulted
(threw a non-cancellation exception).
public bool IsValidationFaulted(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier);
member this.IsValidationFaulted : FieldIdentifier -> bool
Public Function IsValidationFaulted (ByRef fieldIdentifier As FieldIdentifier) As Boolean
Parameters
- fieldIdentifier
- FieldIdentifier
Identifies the field to query.
Returns
true if the field's last async validation faulted; otherwise false.
Applies to
IsValidationFaulted<TField>(Expression<Func<TField>>)
- Source:
- EditContext.cs
Returns true if the field identified by the accessor expression's
last async validation faulted (threw a non-cancellation exception).
public bool IsValidationFaulted<TField>(System.Linq.Expressions.Expression<Func<TField>> accessor);
member this.IsValidationFaulted : System.Linq.Expressions.Expression<Func<'Field>> -> bool
Public Function IsValidationFaulted(Of TField) (accessor As Expression(Of Func(Of TField))) As Boolean
Type Parameters
- TField
The type of the field.
Parameters
- accessor
- Expression<Func<TField>>
An expression that identifies the field, e.g. () => model.Email.
Returns
true if the field's last async validation faulted; otherwise false.