ModelValidator.IsRequired Property

.NET Framework (current version)
 

When implemented in a derived class, gets a value that indicates whether the model is required.

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

Public Overridable ReadOnly Property IsRequired As Boolean

Property Value

Type: System.Boolean

true if the model is required; otherwise false. The default is false.

.NET Framework
Available since 4.5
Return to top
Show: