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 a value that indicates whether model validation is required.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property IsRequired As Boolean
Get
public override bool IsRequired { get; }
public:
virtual property bool IsRequired {
bool get () override;
}
Property Value
Type: System.Boolean
true if model validation is required; otherwise, false.
Remarks
For more information model validation, see the entry Input Validation vs. Model Validation in ASP.NET MVC on Brad Wilson's blog.