RegularExpressionAttributeAdapter Constructor
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the RegularExpressionAttributeAdapter class.
Namespace: System.Web.Http.Validation.Validators
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
metadata As ModelMetadata, _
actionContext As HttpActionContext, _
attribute As RegularExpressionAttribute _
)
public RegularExpressionAttributeAdapter(
ModelMetadata metadata,
HttpActionContext actionContext,
RegularExpressionAttribute attribute
)
public:
RegularExpressionAttributeAdapter(
ModelMetadata^ metadata,
HttpActionContext^ actionContext,
RegularExpressionAttribute^ attribute
)
new :
metadata:ModelMetadata *
actionContext:HttpActionContext *
attribute:RegularExpressionAttribute -> RegularExpressionAttributeAdapter
public function RegularExpressionAttributeAdapter(
metadata : ModelMetadata,
actionContext : HttpActionContext,
attribute : RegularExpressionAttribute
)
Parameters
- metadata
Type: System.Web.Http.Metadata.ModelMetadata
- actionContext
Type: System.Web.Http.Controllers.HttpActionContext
- attribute
Type: System.ComponentModel.DataAnnotations.RegularExpressionAttribute