2 writes to MaximumLength
Microsoft.Extensions.Diagnostics.Probes (2)
src\Shared\Data.Validation\LengthAttribute.cs (2)
60
MaximumLength
= null;
78
MaximumLength
= maximumLength;
9 references to MaximumLength
Microsoft.Extensions.Diagnostics.Probes (9)
src\Shared\Data.Validation\LengthAttribute.cs (9)
42
/// Gets or sets a value indicating whether the length validation should exclude the <see cref="MinimumLength"/> and <see cref="
MaximumLength
"/> values.
91
/// <exception cref="ArgumentOutOfRangeException"><see cref="MinimumLength"/> is less than zero or if it is greater than <see cref="
MaximumLength
"/>.</exception>
101
if (
MaximumLength
.HasValue && MinimumLength >=
MaximumLength
)
156
if (
MaximumLength
.HasValue)
160
? count > MinimumLength && count <
MaximumLength
161
: count >= MinimumLength && count <=
MaximumLength
;
180
var validationMessage =
MaximumLength
.HasValue
181
? $"The field {validationContext.GetDisplayName()} length must be in the {exclusiveString}range [{MinimumLength}..{
MaximumLength
}]."