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
Type
public override JTokenType Type { get; }
Property Value
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
Contains(KeyValuePair<string, JToken>)
public bool Contains(KeyValuePair<string, JToken> item)
Parameters
item
KeyValuePair<string, JToken>
Returns
ContainsKey(string)
public bool ContainsKey(string key)
Parameters
key
string
Returns
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
GetValue(string)
public JToken GetValue(string propertyName)
Parameters
propertyName
string
Returns
GetValue(string, StringComparison)
public JToken GetValue(string propertyName, StringComparison comparison)
Parameters
propertyName
stringcomparison
StringComparison
Returns
Parse(string)
public static JObject Parse(string json)
Parameters
json
string
Returns
Remove(KeyValuePair<string, JToken>)
public bool Remove(KeyValuePair<string, JToken> item)
Parameters
item
KeyValuePair<string, JToken>
Returns
Remove(string)
public bool Remove(string key)
Parameters
key
string
Returns
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
Returns
TryGetValue(string, StringComparison, out JToken)
public bool TryGetValue(string propertyName, StringComparison comparison, out JToken value)
Parameters
propertyName
stringcomparison
StringComparisonvalue
JToken