RequiredAttributeAdapter Constructor (ModelMetadata, ModelBindingExecutionContext, RequiredAttribute)
.NET Framework (current version)
Initializes a new instance of the RequiredAttributeAdapter class.
Assembly: System.Web (in System.Web.dll)
new :
metadata:ModelMetadata *
context:ModelBindingExecutionContext *
attribute:RequiredAttribute -> RequiredAttributeAdapter
Parameters
- metadata
-
Type:
System.Web.ModelBinding.ModelMetadata
The metadata.
- context
-
Type:
System.Web.ModelBinding.ModelBindingExecutionContext
The execution context.
- attribute
-
Type:
System.ComponentModel.DataAnnotations.RequiredAttribute
The attribute.
.NET Framework
Available since 4.5
Available since 4.5
Show: