Click or drag to resize
Json.NET

Required Enumeration

 
Indicating whether a property is required.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public enum Required
Members
  Member nameValueDescription
Default0 The property is not required. The default state.
AllowNull1 The property must be defined in JSON but can be a null value.
Always2 The property must be defined in JSON and cannot be a null value.
DisallowNull3 The property is not required but it cannot be a null value.
See Also