WCF-Xtensions Class Reference for Mono
MemberSerialization Enumeration






Specifies the member serialization options for the JsonSerializer.
Syntax
'Declaration
 
Public Enum MemberSerialization 
   Inherits System.Enum
'Usage
 
Dim instance As MemberSerialization
public enum MemberSerialization : System.Enum 
public enum MemberSerialization = class(System.Enum)
public enum MemberSerialization extends System.Enum
__value public enum MemberSerialization : public System.Enum 
public enum class MemberSerialization : public System.Enum 
Members
MemberDescription
FieldsAll public and private fields are serialized. Members can be excluded using JsonIgnoreAttribute or System.NonSerializedAttribute. This member serialization mode can also be set by marking the class with System.SerializableAttribute and setting IgnoreSerializableAttribute on Noemax.Newtonsoft.Json.Serialization.DefaultContractResolver to false.
OptInOnly members must be marked with JsonPropertyAttribute or System.Runtime.Serialization.DataMemberAttribute are serialized. This member serialization mode can also be set by marking the class with System.Runtime.Serialization.DataContractAttribute.
OptOutAll public members are serialized by default. Members can be excluded using JsonIgnoreAttribute or System.NonSerializedAttribute. This is the default member serialization mode.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Noemax.Newtonsoft.Json.MemberSerialization

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Noemax.Newtonsoft.Json Namespace

Send Feedback