Class JContainer
- Namespace
- Newtonsoft.Json.Linq
- Assembly
- Newtonsoft.Json.dll
public abstract class JContainer : JToken, IJEnumerable<JToken>, IJsonLineInfo, ICloneable, IDynamicMetaObjectProvider, IList<JToken>, ICollection<JToken>, IEnumerable<JToken>, ITypedList, IBindingList, IList, ICollection, IEnumerable, INotifyCollectionChanged
- Inheritance
-
JContainer
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
ChildrenTokens
protected abstract IList<JToken> ChildrenTokens { get; }
Property Value
Count
public int Count { get; }
Property Value
First
public override JToken? First { get; }
Property Value
HasValues
public override bool HasValues { get; }
Property Value
Last
public override JToken? Last { get; }
Property Value
Methods
Add(object?)
public virtual void Add(object? content)
Parameters
content
object
AddFirst(object?)
public void AddFirst(object? content)
Parameters
content
object
Children()
public override JEnumerable<JToken> Children()
Returns
CreateWriter()
public JsonWriter CreateWriter()
Returns
Descendants()
public IEnumerable<JToken> Descendants()
Returns
DescendantsAndSelf()
public IEnumerable<JToken> DescendantsAndSelf()
Returns
Merge(object)
public void Merge(object content)
Parameters
content
object
Merge(object, JsonMergeSettings?)
public void Merge(object content, JsonMergeSettings? settings)
Parameters
content
objectsettings
JsonMergeSettings
OnAddingNew(AddingNewEventArgs)
protected virtual void OnAddingNew(AddingNewEventArgs e)
Parameters
OnCollectionChanged(NotifyCollectionChangedEventArgs)
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
OnListChanged(ListChangedEventArgs)
protected virtual void OnListChanged(ListChangedEventArgs e)
Parameters
RemoveAll()
public void RemoveAll()
ReplaceAll(object)
public void ReplaceAll(object content)
Parameters
content
object
Values<T>()
public override IEnumerable<T?> Values<T>()
Returns
- IEnumerable<T>
Type Parameters
T
Events
AddingNew
public event AddingNewEventHandler AddingNew
Event Type
CollectionChanged
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
ListChanged
public event ListChangedEventHandler ListChanged