1 write to Pattern
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
24Pattern = pattern;
14 references to Pattern
Microsoft.AspNetCore.Components.Endpoints (2)
Forms\DataAnnotationsClientValidationProvider.cs (1)
166writer.Param("pattern"u8, rea.Pattern);
Forms\DataAnnotationsLocalizer.cs (1)
148RegularExpressionAttribute a => string.Format(culture, messageTemplate, displayName, a.Pattern),
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
RegularExpressionAttributeAdapter.cs (2)
23MergeAttribute(context.Attributes, "data-val-regex-pattern", Attribute.Pattern); 34Attribute.Pattern);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
134schema[OpenApiSchemaKeywords.PatternKeyword] = regularExpressionAttribute.Pattern;
Microsoft.Extensions.AI.Abstractions (1)
..\..\..\..\src\Libraries\Microsoft.Extensions.AI.Abstractions\Utilities\AIJsonUtilities.Schema.Create.cs (1)
448ConvertSchemaToObject(ref schema)[PatternPropertyName] ??= regexAttribute.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));