ValidationAttribute Properties

ValidationAttribute Properties

The ValidationAttribute type exposes the following members.

  Name Description
Public property ErrorMessage Gets or sets the non-localizable error message to display when validation fails.
Public property ErrorMessageResourceName Gets or sets the property name on the resource type that provides the localizable error message.
Public property ErrorMessageResourceType Gets or sets the resource type that provides the localizable error message.
Protected property ErrorMessageString Gets the localized or non-localized error message.
Top

Community Additions

ADD
Show:
© 2016 Microsoft