Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RequiredAttributeAdapter Constructor (ModelMetadata, ControllerContext, RequiredAttribute)

 

Initializes a new instance of the RequiredAttributeAttribute class.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public RequiredAttributeAdapter(
	ModelMetadata metadata,
	ControllerContext context,
	RequiredAttribute 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.RequiredAttribute

The required attribute.

Return to top
Show:
© 2015 Microsoft