Partager via


DataAnnotationsModelValidatorProvider.AddImplicitRequiredAttributeForValueTypes Propriété

Définition

Obtient ou définit une valeur qui indique si les types valeur non Nullable sont obligatoires.

public:
 static property bool AddImplicitRequiredAttributeForValueTypes { bool get(); void set(bool value); };
public static bool AddImplicitRequiredAttributeForValueTypes { get; set; }
static member AddImplicitRequiredAttributeForValueTypes : bool with get, set
Public Shared Property AddImplicitRequiredAttributeForValueTypes As Boolean

Valeur de propriété

true si les types valeur non Nullable sont obligatoires ; sinon, false.

S’applique à