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 non-nullable value types are required.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Shared Property AddImplicitRequiredAttributeForValueTypes As Boolean
Get
Set
public static bool AddImplicitRequiredAttributeForValueTypes { get; set; }
public:
static property bool AddImplicitRequiredAttributeForValueTypes {
bool get ();
void set (bool value);
}
Property Value
Type: System.Boolean
true if non-nullable value types are required; otherwise, false.
Remarks
This property can be used when multiple validation providers are registered in order to disable implicitly required constraints for a provider.