Class JsonPropertyAttribute
- Namespace
- Newtonsoft.Json
- Assembly
- Newtonsoft.Json.dll
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class JsonPropertyAttribute : Attribute
- Inheritance
-
JsonPropertyAttribute
- Inherited Members
-
- Extension Methods
-
Constructors
JsonPropertyAttribute()
public JsonPropertyAttribute()
JsonPropertyAttribute(string)
public JsonPropertyAttribute(string propertyName)
Parameters
propertyName
string
Properties
DefaultValueHandling
public DefaultValueHandling DefaultValueHandling { get; set; }
Property Value
- DefaultValueHandling
IsReference
public bool IsReference { get; set; }
Property Value
- bool
ItemConverterParameters
public object[]? ItemConverterParameters { get; set; }
Property Value
- object[]
ItemConverterType
public Type? ItemConverterType { get; set; }
Property Value
- Type
ItemIsReference
public bool ItemIsReference { get; set; }
Property Value
- bool
ItemReferenceLoopHandling
public ReferenceLoopHandling ItemReferenceLoopHandling { get; set; }
Property Value
- ReferenceLoopHandling
ItemTypeNameHandling
public TypeNameHandling ItemTypeNameHandling { get; set; }
Property Value
- TypeNameHandling
NamingStrategyParameters
public object[]? NamingStrategyParameters { get; set; }
Property Value
- object[]
NamingStrategyType
public Type? NamingStrategyType { get; set; }
Property Value
- Type
NullValueHandling
public NullValueHandling NullValueHandling { get; set; }
Property Value
- NullValueHandling
ObjectCreationHandling
public ObjectCreationHandling ObjectCreationHandling { get; set; }
Property Value
- ObjectCreationHandling
Order
public int Order { get; set; }
Property Value
- int
PropertyName
public string? PropertyName { get; set; }
Property Value
- string
ReferenceLoopHandling
public ReferenceLoopHandling ReferenceLoopHandling { get; set; }
Property Value
- ReferenceLoopHandling
Required
public Required Required { get; set; }
Property Value
- Required
TypeNameHandling
public TypeNameHandling TypeNameHandling { get; set; }
Property Value
- TypeNameHandling