2 writes to Length
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (2)
32Length = length; 43Length = MaxAllowableLength;
14 references to Length
Microsoft.AspNetCore.Components.Endpoints (2)
Forms\DataAnnotationsClientValidationProvider.cs (1)
144writer.Param("max"u8, maxla.Length);
Forms\DataAnnotationsLocalizer.cs (1)
105MaxLengthAttribute a => string.Format(culture, messageTemplate, displayName, a.Length),
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.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
140schema[key] = maxLengthAttribute.Length;
Microsoft.Extensions.AI.Abstractions (2)
Utilities\AIJsonUtilities.Schema.Create.cs (2)
475obj[MaxLengthStringPropertyName] ??= maxLengthAttribute.Length; 479obj[MaxLengthCollectionPropertyName] ??= maxLengthAttribute.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)