1 write to Pattern
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
24
Pattern
= pattern;
11 references to Pattern
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
RegularExpressionAttributeAdapter.cs (2)
23
MergeAttribute(context.Attributes, "data-val-regex-pattern", Attribute.
Pattern
);
34
Attribute.
Pattern
);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
114
schema[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>
91
return 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>
106
if (string.IsNullOrEmpty(
Pattern
))
113
? new Regex(
Pattern
)
114
: new Regex(
Pattern
, default(RegexOptions), TimeSpan.FromMilliseconds(MatchTimeoutInMilliseconds));