Associates a FormatValidationRule with the attribute target.
| C# | Visual Basic |
[AttributeUsageAttribute(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] public sealed class ValidateFormatAttribute : ValidationAttribute
<AttributeUsageAttribute(AttributeTargets.Field, AllowMultiple := False, Inherited := False)> _ Public NotInheritable Class ValidateFormatAttribute _ Inherits ValidationAttribute
| All Members | Constructors | Properties | |||
| Icon | Member | Description |
|---|---|---|
| ValidateFormatAttribute(String) |
Initializes a new instance of the ValidateFormatAttribute class.
| |
| ValidateFormatAttribute(Regex) |
Initializes a new instance of the ValidateFormatAttribute class.
| |
| ValidationRule |
Gets the validation rule.
(Overrides ValidationAttribute.ValidationRule.) |
| Object | |||
| Attribute | |||
| ValidationAttribute | |||
| ValidateFormatAttribute | |||