ModelValidator.IsRequired Property

Gets or sets a value that indicates whether a model property is required.

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

'Declaration
Public Overridable ReadOnly Property IsRequired As Boolean 
	Get
'Usage
Dim instance As ModelValidator 
Dim value As Boolean 

value = instance.IsRequired

Property Value

Type: System.Boolean
true if the model property is required; otherwise, false.
Show: