ValidityState Class
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#validitystate
public sealed class ValidityStateProperties
| Name | Description |
|---|---|
| BadInput | Gets a value indicating whether the user provided input that cannot be converted to a value. |
| CustomError | Gets a value indicating whether a custom validity error message is set. |
| PatternMismatch | Gets a value indicating whether the value does not match the required pattern. |
| RangeOverflow | Gets a value indicating whether the value is greater than the maximum. |
| RangeUnderflow | Gets a value indicating whether the value is lower than the minimum. |
| StepMismatch | Gets a value indicating whether the value does not fit the allowed step. |
| TooLong | Gets a value indicating whether the value is longer than the maximum length. |
| TooShort | Gets a value indicating whether the value is shorter than the minimum length. |
| TypeMismatch | Gets a value indicating whether the value is not in the required syntax (such as an e-mail address or a URL). |
| Valid | https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-validitystate-valid |
| ValueMissing | Gets a value indicating whether the control is required but has no value. |
BadInput
FormAssociated.csGets a value indicating whether the user provided input that cannot be converted to a value.
public bool BadInput { get; }CustomError
FormAssociated.csGets a value indicating whether a custom validity error message is set.
public bool CustomError { get; }PatternMismatch
FormAssociated.csGets a value indicating whether the value does not match the required pattern.
public bool PatternMismatch { get; }RangeOverflow
FormAssociated.csGets a value indicating whether the value is greater than the maximum.
public bool RangeOverflow { get; }RangeUnderflow
FormAssociated.csGets a value indicating whether the value is lower than the minimum.
public bool RangeUnderflow { get; }StepMismatch
FormAssociated.csGets a value indicating whether the value does not fit the allowed step.
public bool StepMismatch { get; }TooLong
FormAssociated.csGets a value indicating whether the value is longer than the maximum length.
public bool TooLong { get; }TooShort
FormAssociated.csGets a value indicating whether the value is shorter than the minimum length.
public bool TooShort { get; }TypeMismatch
FormAssociated.csGets a value indicating whether the value is not in the required syntax (such as an e-mail address or a URL).
public bool TypeMismatch { get; }Valid
FormAssociated.cshttps://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-validitystate-valid
public bool Valid { get; }ValueMissing
FormAssociated.csGets a value indicating whether the control is required but has no value.
public bool ValueMissing { get; }