Table of Contents

Class JObject

Namespace
Dynamicweb.Core.Json
Assembly
Dynamicweb.Core.dll
Wrapper for Newtonsoft.Json.Linq.JObject: Only use to fix legacy issues. Never use in new code!
public sealed class JObject : JContainer, ICloneable, IList<JToken>, ICollection<JToken>, IEnumerable<JToken>, IList, ICollection, IDictionary<string, JToken>, ICollection<KeyValuePair<string, JToken>>, IEnumerable<KeyValuePair<string, JToken>>, IEnumerable
Inheritance
JObject
Implements
Inherited Members
Extension Methods

Constructors

JObject()

public JObject()

JObject(JObject)

public JObject(JObject other)

Parameters

other JObject

JObject(object)

public JObject(object content)

Parameters

content object

JObject(params object[])

public JObject(params object[] content)

Parameters

content object[]

Properties

this[string]

public JToken this[string key] { get; set; }

Parameters

key string

Property Value

JToken

Type

public override JTokenType Type { get; }

Property Value

JTokenType

Methods

Add(KeyValuePair<string, JToken>)

public void Add(KeyValuePair<string, JToken> item)

Parameters

item KeyValuePair<string, JToken>

Add(string, JToken)

public void Add(string key, JToken value)

Parameters

key string
value JToken

Contains(KeyValuePair<string, JToken>)

public bool Contains(KeyValuePair<string, JToken> item)

Parameters

item KeyValuePair<string, JToken>

Returns

bool

ContainsKey(string)

public bool ContainsKey(string key)

Parameters

key string

Returns

bool

CopyTo(KeyValuePair<string, JToken>[], int)

public void CopyTo(KeyValuePair<string, JToken>[] array, int arrayIndex)

Parameters

array KeyValuePair<string, JToken>[]
arrayIndex int

FromObject(object)

public static JObject FromObject(object o)

Parameters

o object

Returns

JObject

GetValue(string)

public JToken GetValue(string propertyName)

Parameters

propertyName string

Returns

JToken

GetValue(string, StringComparison)

public JToken GetValue(string propertyName, StringComparison comparison)

Parameters

propertyName string
comparison StringComparison

Returns

JToken

Parse(string)

public static JObject Parse(string json)

Parameters

json string

Returns

JObject

Remove(KeyValuePair<string, JToken>)

public bool Remove(KeyValuePair<string, JToken> item)

Parameters

item KeyValuePair<string, JToken>

Returns

bool

Remove(string)

public bool Remove(string key)

Parameters

key string

Returns

bool

ToObject<T>()

public override T ToObject<T>()

Returns

T

Type Parameters

T

TryGetValue(string, out JToken)

public bool TryGetValue(string key, out JToken value)

Parameters

key string
value JToken

Returns

bool

TryGetValue(string, StringComparison, out JToken)

public bool TryGetValue(string propertyName, StringComparison comparison, out JToken value)

Parameters

propertyName string
comparison StringComparison
value JToken

Returns

bool
To top