| Required Enumeration |
Indicating whether a property is required.
Namespace:
Newtonsoft.Json
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax Members
| Member name | Value | Description |
---|
| Default | 0 |
The property is not required. The default state.
|
| AllowNull | 1 |
The property must be defined in JSON but can be a null value.
|
| Always | 2 |
The property must be defined in JSON and cannot be a null value.
|
| DisallowNull | 3 |
The property is not required but it cannot be a null value.
|
See Also