5 references to LengthAttribute
Microsoft.Extensions.Telemetry (5)
src\Shared\Data.Validation\LengthAttribute.cs (5)
50
/// Initializes a new instance of the <see cref="
LengthAttribute
"/> class.
64
/// Initializes a new instance of the <see cref="
LengthAttribute
"/> class.
98
throw new InvalidOperationException($"{nameof(
LengthAttribute
)} requires a minimum length >= 0 (see field {validationContext.GetDisplayName()})");
103
throw new InvalidOperationException($"{nameof(
LengthAttribute
)} requires the minimum length to be less than maximum length (see field {validationContext.GetDisplayName()})");
140
throw new InvalidOperationException($"{nameof(
LengthAttribute
)} is not supported for fields of type {value.GetType()} (see field {validationContext.GetDisplayName()})");