Class QuestionValidation
Optional validation rules applied to a Question answer before acceptance.
public sealed class QuestionValidation
- Inheritance
-
QuestionValidation
- Inherited Members
Properties
ErrorMessage
Human-readable description of the validation rule shown on failure.
public string? ErrorMessage { get; init; }
Property Value
Max
Maximum numeric value (for Number).
public double? Max { get; init; }
Property Value
MaxLength
Maximum number of characters allowed (for Text).
public int? MaxLength { get; init; }
Property Value
- int?
Min
Minimum numeric value (for Number).
public double? Min { get; init; }
Property Value
Pattern
Regular-expression pattern the answer must match (for Text).
public string? Pattern { get; init; }