RegexAttribute Class

RegexAttribute Class

Specifies a regular expression that the property value will be validated against.

[AttributeUsage(AttributeTargets.Property)]
public sealed class RegexAttribute: Attribute, IPropertyModelAttribute

Inheritance  Attribute RegexAttribute

Implements  IPropertyModelAttribute

Constructors

Name Description
RegexAttribute(string)

Properties

Name Description
ValidationMessage

Methods

Name Description
Apply(PropertyDefinition)