Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RegularExpressionAttribute Properties

RegularExpressionAttribute Properties

The RegularExpressionAttribute type exposes the following members.

  Name Description
Public property ErrorMessage Gets or sets the non-localizable error message to display when validation fails. (Inherited from ValidationAttribute.)
Public property ErrorMessageResourceName Gets or sets the property name on the resource type that provides the localizable error message. (Inherited from ValidationAttribute.)
Public property ErrorMessageResourceType Gets or sets the resource type that provides the localizable error message. (Inherited from ValidationAttribute.)
Protected property ErrorMessageString Gets the localized or non-localized error message. (Inherited from ValidationAttribute.)
Public property Pattern Gets the regular expression to use for validation of the associated member.
Top

Community Additions

ADD
Show:
© 2015 Microsoft