Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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)
Syntax
'Declaration
Public Overridable ReadOnly Property IsRequired As Boolean
Get
public virtual bool IsRequired { get; }
public:
virtual property bool IsRequired {
bool get ();
}
Property Value
Type: System.Boolean
true if the model property is required; otherwise, false.