RegularExpressionAttributeAdapter Class¶
Inheritance Hierarchy¶
System.Object
Microsoft.AspNet.Mvc.ModelBinding.Validation.DataAnnotationsClientModelValidator{System.ComponentModel.DataAnnotations.RegularExpressionAttribute}
Microsoft.AspNet.Mvc.ModelBinding.Validation.RegularExpressionAttributeAdapter
Syntax¶
public class RegularExpressionAttributeAdapter : DataAnnotationsClientModelValidator<RegularExpressionAttribute>, IClientModelValidator
Constructors¶
-
RegularExpressionAttributeAdapter
(System.ComponentModel.DataAnnotations.RegularExpressionAttribute)¶ Arguments: - attribute (System.ComponentModel.DataAnnotations.RegularExpressionAttribute) –
public RegularExpressionAttributeAdapter(RegularExpressionAttribute attribute)
-
Methods¶
-
GetClientValidationRules
(Microsoft.AspNet.Mvc.ModelBinding.Validation.ClientModelValidationContext)¶ Arguments: Return type: System.Collections.Generic.IEnumerable{Microsoft.AspNet.Mvc.ModelBinding.Validation.ModelClientValidationRule}
public override IEnumerable<ModelClientValidationRule> GetClientValidationRules(ClientModelValidationContext context)
-