Class ValueObjectEditContextExtensions
Namespace: AdCodicem.ValueObjects.Blazor
Assembly: AdCodicem.ValueObjects.Blazor.dll
Reads the rule codes the inputs of value objects keep on their form's
public static class ValueObjectEditContextExtensions
Inheritance
object ← ValueObjectEditContextExtensions
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
An
Methods
TryGetValueObjectErrorCode(EditContext, in FieldIdentifier, out string?)
Gets the code of the rule that refused the text of a field, while its input shows the refusal.
public static bool TryGetValueObjectErrorCode(this EditContext editContext, in FieldIdentifier field, out string? code)
Parameters
editContext EditContext
The form's edit context.
field FieldIdentifier
The field.
code string?
The code: one of
Returns
true when the field's input shows text its value object refused.
Exceptions
editContext is null.