RegularExpressionAttributeAdapter Constructor
Initializes a new instance of the RegularExpressionAttributeAdapter class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
metadata As ModelMetadata, _
context As ControllerContext, _
attribute As RegularExpressionAttribute _
)
public RegularExpressionAttributeAdapter(
ModelMetadata metadata,
ControllerContext context,
RegularExpressionAttribute attribute
)
public:
RegularExpressionAttributeAdapter(
ModelMetadata^ metadata,
ControllerContext^ context,
RegularExpressionAttribute^ attribute
)
Parameters
- metadata
Type: System.Web.Mvc.ModelMetadata
The model metadata.
- context
Type: System.Web.Mvc.ControllerContext
The controller context.
- attribute
Type: System.ComponentModel.DataAnnotations.RegularExpressionAttribute
The regular expression attribute.