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: 11.0.1
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