1 write to Pattern
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
24Pattern = pattern;
11 references to 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\JsonObjectSchemaExtensions.cs (1)
90schema[OpenApiSchemaKeywords.PatternKeyword] = regularExpressionAttribute.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));