2 writes to MinimumLength
Microsoft.Extensions.Telemetry (2)
src\Shared\Data.Validation\LengthAttribute.cs (2)
59
MinimumLength
= minimumLength;
77
MinimumLength
= minimumLength;
10 references to MinimumLength
Microsoft.Extensions.Telemetry (10)
src\Shared\Data.Validation\LengthAttribute.cs (10)
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>
96
if (
MinimumLength
< 0)
101
if (MaximumLength.HasValue &&
MinimumLength
>= MaximumLength)
160
? count >
MinimumLength
&& count < MaximumLength
161
: count >=
MinimumLength
&& count <= MaximumLength;
167
? count >
MinimumLength
168
: count >=
MinimumLength
;
181
? $"The field {validationContext.GetDisplayName()} length must be in the {exclusiveString}range [{
MinimumLength
}..{MaximumLength}]."
182
: $"The field {validationContext.GetDisplayName()} length must be greater {orEqualString}than {
MinimumLength
}.";