1 instantiation of Length
Microsoft.Extensions.Compliance.Redaction (1)
HmacRedactorOptions.cs (1)
44[Microsoft.Shared.Data.Validation.Length(44)]
5 references to Length
Microsoft.Extensions.Compliance.Redaction (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. 98throw new InvalidOperationException($"{nameof(LengthAttribute)} requires a minimum length >= 0 (see field {validationContext.GetDisplayName()})"); 103throw new InvalidOperationException($"{nameof(LengthAttribute)} requires the minimum length to be less than maximum length (see field {validationContext.GetDisplayName()})"); 140throw new InvalidOperationException($"{nameof(LengthAttribute)} is not supported for fields of type {value.GetType()} (see field {validationContext.GetDisplayName()})");