Table of Contents

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

IList<JToken>

Count

public int Count { get; }

Property Value

int

First

public override JToken? First { get; }

Property Value

JToken

HasValues

public override bool HasValues { get; }

Property Value

bool

Last

public override JToken? Last { get; }

Property Value

JToken

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

JEnumerable<JToken>

CreateWriter()

public JsonWriter CreateWriter()

Returns

JsonWriter

Descendants()

public IEnumerable<JToken> Descendants()

Returns

IEnumerable<JToken>

DescendantsAndSelf()

public IEnumerable<JToken> DescendantsAndSelf()

Returns

IEnumerable<JToken>

Merge(object)

public void Merge(object content)

Parameters

content object

Merge(object, JsonMergeSettings?)

public void Merge(object content, JsonMergeSettings? settings)

Parameters

content object
settings JsonMergeSettings

OnAddingNew(AddingNewEventArgs)

protected virtual void OnAddingNew(AddingNewEventArgs e)

Parameters

e AddingNewEventArgs

OnCollectionChanged(NotifyCollectionChangedEventArgs)

protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e NotifyCollectionChangedEventArgs

OnListChanged(ListChangedEventArgs)

protected virtual void OnListChanged(ListChangedEventArgs e)

Parameters

e ListChangedEventArgs

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

AddingNewEventHandler

CollectionChanged

public event NotifyCollectionChangedEventHandler CollectionChanged

Event Type

NotifyCollectionChangedEventHandler

ListChanged

public event ListChangedEventHandler ListChanged

Event Type

ListChangedEventHandler