1 write to MaximumLength
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
20MaximumLength = maximumLength;
7 references to MaximumLength
Microsoft.Extensions.AI.Abstractions (2)
Utilities\AIJsonUtilities.Schema.Create.cs (2)
607obj[MaxLengthStringPropertyName] ??= lengthAttribute.MaximumLength; 616obj[MaxLengthCollectionPropertyName] ??= lengthAttribute.MaximumLength;
Microsoft.Extensions.Validation.Localization (1)
BuiltInFormatters.cs (1)
24=> string.Format(culture, messageTemplate, displayName, attribute.MinimumLength, attribute.MaximumLength);
System.ComponentModel.Annotations (4)
System\ComponentModel\DataAnnotations\LengthAttribute.cs (4)
46/// <see cref="MinimumLength"/> is less than zero or <see cref="MaximumLength"/> is less than <see cref="MinimumLength"/>. 70return (uint)(length - MinimumLength) <= (uint)(MaximumLength - MinimumLength); 80string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, MinimumLength, MaximumLength); 93if (MaximumLength < MinimumLength)