2 writes to Length
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (2)
32Length = length; 43Length = MaxAllowableLength;
13 references to Length
Microsoft.AspNetCore.Components.Forms (1)
ClientValidation\DefaultClientValidationService.cs (1)
92htmlAttributes.TryAdd("data-val-maxlength-max", maxla.Length.ToString(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
MaxLengthAttributeAdapter.cs (2)
18_max = Attribute.Length.ToString(CultureInfo.InvariantCulture); 38Attribute.Length);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultHtmlGenerator.cs (2)
1341if (attribute is MaxLengthAttribute maxLengthAttribute && (!maxLengthValue.HasValue || maxLengthValue.Value > maxLengthAttribute.Length)) 1343maxLengthValue = maxLengthAttribute.Length;
Microsoft.Extensions.AI.Abstractions (2)
Utilities\AIJsonUtilities.Schema.Create.cs (2)
475obj[MaxLengthStringPropertyName] ??= maxLengthAttribute.Length; 479obj[MaxLengthCollectionPropertyName] ??= maxLengthAttribute.Length;
Microsoft.Extensions.Validation.Localization (1)
BuiltInFormatters.cs (1)
30=> string.Format(culture, messageTemplate, displayName, attribute.Length);
System.ComponentModel.Annotations (5)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (5)
87return MaxAllowableLength == Length || length <= Length; 97string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, Length); 105if (Length == 0 || Length < -1)