Specifies the member serialization options for the JsonSerializer.
| C# | Visual Basic | Visual C++ |
public enum MemberSerialization
Public Enumeration MemberSerialization
public enum class MemberSerialization
| Member | Description |
|---|---|
| OptOut |
All members are serialized by default. Members can be excluded using the JsonIgnoreAttribute.
|
| OptIn |
Only members must be marked with the JsonPropertyAttribute are serialized.
|