interface BridgeFieldConstraints The C# validation attributes of a member (DataAnnotations), which a page can mirror on its input, such as maxlength and required. They describe the .NET validation, which still runs; the field does not enforce them.
Properties
required
readonly required?: boolean; [Required].
minLength
readonly minLength?: number; [MinLength], or the minimum of [StringLength].
maxLength
readonly maxLength?: number; [MaxLength] or [StringLength].
min
readonly min?: number | string; The minimum of [Range]: a number for numeric bounds, otherwise the bound's invariant text ("0.01", a date).
max
readonly max?: number | string; The maximum of [Range], like min.
minExclusive
readonly minExclusive?: boolean; [Range(MinimumIsExclusive = true)].
maxExclusive
readonly maxExclusive?: boolean; [Range(MaximumIsExclusive = true)].
pattern
readonly pattern?: string; [RegularExpression] when a browser's pattern attribute, which compiles it with the v flag, reads it as .NET does; .NET matches it against the whole value, as the attribute does. A pattern with \d, \w or \b, inline options, lookbehind or a character class the v flag rejects is left out.