Class RequiredValidationRule
- Namespace
- HeBianGu.Service.Validation
- Assembly
- HeBianGu.Service.Validation.dll
public class RequiredValidationRule : ValidationRuleBase
- Inheritance
-
RequiredValidationRule
- Inherited Members
- Extension Methods
Constructors
RequiredValidationRule()
public RequiredValidationRule()
Methods
Validate(object, CultureInfo)
When overridden in a derived class, performs validation checks on a value.
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
Parameters
value
objectThe value from the binding target to check.
cultureInfo
CultureInfoThe culture to use in this rule.
Returns
- ValidationResult
A ValidationResult object.