Table of Contents

Class RegularExpressionAttributeAdapter

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Provides an adapter for the RegularExpressionAttribute attribute.

public class RegularExpressionAttributeAdapter : DataAnnotationsModelValidator<RegularExpressionAttribute>
Inheritance
RegularExpressionAttributeAdapter
Inherited Members

Constructors

RegularExpressionAttributeAdapter(ModelMetadata, ControllerContext, RegularExpressionAttribute)

Initializes a new instance of the RegularExpressionAttributeAdapter class.

public RegularExpressionAttributeAdapter(ModelMetadata metadata, ControllerContext context, RegularExpressionAttribute attribute)

Parameters

metadata ModelMetadata

The model metadata.

context ControllerContext

The controller context.

attribute RegularExpressionAttribute

The regular expression attribute.

Methods

GetClientValidationRules()

Gets a list of regular-expression client validation rules.

public override IEnumerable<ModelClientValidationRule> GetClientValidationRules()

Returns

IEnumerable<ModelClientValidationRule>

A list of regular-expression client validation rules.