DataAnnotationsModelValidatorProvider.AddImplicitRequiredAttributeForValueTypes Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy typy wartości niezwiązanych z wartością null są wymagane.

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

Wartość właściwości

true jeśli wymagane są typy wartości innych niż null; w przeciwnym razie , false.

Dotyczy