1 write to Pattern
System.ComponentModel.DataAnnotations (1)
DataAnnotations\RegularExpressionAttribute.cs (1)
43
this.
Pattern
= pattern;
10 references to Pattern
System.ComponentModel.DataAnnotations (8)
DataAnnotations\RegularExpressionAttribute.cs (8)
53
/// <exception cref="ArgumentException"> is thrown if the <see cref="
Pattern
"/> is not a valid regular expression.</exception>
84
/// <exception cref="ArgumentException"> is thrown if the <see cref="
Pattern
"/> is not a valid regular expression.</exception>
88
return String.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, this.
Pattern
);
93
/// Sets up the <see cref="Regex"/> property from the <see cref="
Pattern
"/> property.
95
/// <exception cref="ArgumentException"> is thrown if the current <see cref="
Pattern
"/> cannot be parsed</exception>
101
if (string.IsNullOrEmpty(this.
Pattern
)) {
110
? new Regex(
Pattern
)
111
: Regex = new Regex(
Pattern
, default(RegexOptions), TimeSpan.FromMilliseconds((double)MatchTimeoutInMilliseconds));
System.Web (1)
ModelBinding\RegularExpressionAttributeAdapter.cs (1)
10
return GetLocalizedString(errorMessage, Metadata.GetDisplayName(), Attribute.
Pattern
);
System.Web.DynamicData (1)
DynamicData\FieldTemplateUserControl.cs (1)
534
validator.ValidationExpression = regexAttribute.
Pattern
;