Class RegularExpressionValidationRule
- Namespace
- HeBianGu.Service.Validation
- Assembly
- HeBianGu.Service.Validation.dll
public class RegularExpressionValidationRule : ValidationRuleBase
- Inheritance
-
RegularExpressionValidationRule
- Inherited Members
- Extension Methods
Properties
Pattern
public string Pattern { get; set; }
Property Value
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.