Skip to content

JToken.MemberAttributeSettings

Rob edited this page Aug 4, 2026 · 3 revisions

JToken.MemberAttributeSettings Class

Holds the attribute settings found - used in FromObject

public class JToken.MemberAttributeSettings

Inheritance System.Object 🡒 MemberAttributeSettings


Fields


JToken.MemberAttributeSettings.MemberInfo Field

Member info

public MemberInfo MemberInfo;
Field Value

System.Reflection.MemberInfo


Properties


JToken.MemberAttributeSettings.IgnoreMemberIfNull Property

ignore member if null

public bool IgnoreMemberIfNull { get; set; }
Property Value

System.Boolean


JToken.MemberAttributeSettings.IgnoreSet Property

if set, sets the memberignore variable for the object below

public System.Collections.Generic.HashSet<string> IgnoreSet { get; set; }
Property Value

System.Collections.Generic.HashSet<System.String>


JToken.MemberAttributeSettings.IncludeSet Property

Only include these members

public System.Collections.Generic.HashSet<string> IncludeSet { get; set; }
Property Value

System.Collections.Generic.HashSet<System.String>


JToken.MemberAttributeSettings.Name Property

name to call the output

public string Name { get; set; }
Property Value

System.String


JToken.MemberAttributeSettings.ToJTokenConvert Property

if the object or array element objects defines JToken ToJToken() then this is called to convert
For ToObject, the equivalent is a constructor public ..classname..(JToken token)

public System.Reflection.MethodInfo ToJTokenConvert { get; set; }
Property Value

System.Reflection.MethodInfo


JToken.MemberAttributeSettings.UseCustomConverter Property

if custom format is active for the object itself (marked with [JsonCustomFormat])
Overrides ToJTokenConvert

public bool UseCustomConverter { get; set; }
Property Value

System.Boolean


JToken.MemberAttributeSettings.UseCustomConverterOnArrayElements Property

if custom format is active for array/list/dictionary elements, not the object itself (marked with [JsonCustomFormatArray])

public bool UseCustomConverterOnArrayElements { get; set; }
Property Value

System.Boolean

Clone this wiki locally