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 (1)
Forms\DataAnnotationsClientValidationProvider.cs (1)
143writer.Param("max"u8, maxla.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)
484obj[MaxLengthStringPropertyName] ??= maxLengthAttribute.Length; 488obj[MaxLengthCollectionPropertyName] ??= maxLengthAttribute.Length;
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (6)
87return MaxAllowableLength == Length || length <= Length; 100/// <c>{0}</c> is replaced with <paramref name="name" /> and <c>{1}</c> is replaced with <see cref="Length" />. 104return string.Format(CultureInfo.CurrentCulture, format, name, Length); 113if (Length == 0 || Length < -1)