1 write to Pattern
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
24Pattern = pattern;
13 references to Pattern
Microsoft.AspNetCore.Components.Forms (1)
ClientValidation\DefaultClientValidationService.cs (1)
115htmlAttributes.TryAdd("data-val-regex-pattern", rea.Pattern);
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
RegularExpressionAttributeAdapter.cs (2)
23MergeAttribute(context.Attributes, "data-val-regex-pattern", Attribute.Pattern); 34Attribute.Pattern);
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
439ConvertSchemaToObject(ref schema)[PatternPropertyName] ??= regexAttribute.Pattern;
Microsoft.Extensions.Validation.Localization (1)
BuiltInFormatters.cs (1)
48=> string.Format(culture, messageTemplate, displayName, attribute.Pattern);
System.ComponentModel.Annotations (8)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (8)
55/// <exception cref="ArgumentException"> is thrown if the <see cref="Pattern" /> is not a valid regular expression.</exception> 86/// <exception cref="ArgumentException"> is thrown if the <see cref="Pattern" /> is not a valid regular expression.</exception> 91return string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, Pattern); 96/// Sets up the <see cref="Regex" /> property from the <see cref="Pattern" /> property. 98/// <exception cref="ArgumentException"> is thrown if the current <see cref="Pattern" /> cannot be parsed</exception> 106if (string.IsNullOrEmpty(Pattern)) 113? new Regex(Pattern) 114: new Regex(Pattern, default(RegexOptions), TimeSpan.FromMilliseconds(MatchTimeoutInMilliseconds));