14 writes to MinimumLength
Microsoft.AspNetCore.Identity.UI (12)
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (1)
51[StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
52[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
66[StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
42[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
65[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
47[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (1)
51[StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
52[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
66[StringLength(7, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
42[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
65[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
47[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
414AIFunction func = AIFunctionFactory.Create(([Range(1, 10)] int num, [StringLength(100, MinimumLength = 1)] string str) => num + str.Length, serializerOptions: options); 1089[StringLength(100, MinimumLength = 10)]
14 references to MinimumLength
Microsoft.AspNetCore.Components.Forms (2)
ClientValidation\DefaultClientValidationService.cs (2)
84if (sla.MinimumLength != 0) 86htmlAttributes.TryAdd("data-val-length-min", sla.MinimumLength.ToString(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
StringLengthAttributeAdapter.cs (3)
20_min = Attribute.MinimumLength.ToString(CultureInfo.InvariantCulture); 36if (Attribute.MinimumLength != 0) 51Attribute.MinimumLength);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
160schema[OpenApiSchemaKeywords.MinLengthKeyword] = stringLengthAttribute.MinimumLength;
Microsoft.Extensions.AI.Abstractions (2)
Utilities\AIJsonUtilities.Schema.Create.cs (2)
447if (stringLengthAttribute.MinimumLength > 0) 449obj[MinLengthStringPropertyName] ??= stringLengthAttribute.MinimumLength;
Microsoft.Extensions.Validation.Localization (1)
BuiltInFormatters.cs (1)
54=> string.Format(culture, messageTemplate, displayName, attribute.MaximumLength, attribute.MinimumLength);
System.ComponentModel.Annotations (5)
System\ComponentModel\DataAnnotations\StringLengthAttribute.cs (5)
58return length >= MinimumLength && length <= MaximumLength; 71bool useErrorMessageWithMinimum = MinimumLength != 0 && !CustomErrorMessageSet; 78return string.Format(CultureInfo.CurrentCulture, errorMessage, name, MaximumLength, MinimumLength); 91if (MaximumLength < MinimumLength) 93throw new InvalidOperationException(SR.Format(SR.RangeAttribute_MinGreaterThanMax, MaximumLength, MinimumLength));