Validates that the target is present. i.e. Not null or empty.

C# | Visual Basic |
public sealed class PresenceValidationRule : ValidationRule
Public NotInheritable Class PresenceValidationRule _ Inherits ValidationRule

All Members | Constructors | Methods | |||
Icon | Member | Description |
---|---|---|
![]() | PresenceValidationRule()()() | |
![]() | Validate(ValidationContext) |
Perform the validation logic associated with this rule.
(Overrides ValidationRule.Validate(ValidationContext).) |

Object | ||
![]() | ValidationRule | |
![]() | PresenceValidationRule |