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