Table of Contents

Class JContainer

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

Properties

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

IsFixedSize

public bool IsFixedSize { get; }

Property Value

bool

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

IsSynchronized

public bool IsSynchronized { get; }

Property Value

bool

this[int]

public JToken this[int index] { get; set; }

Parameters

index int

Property Value

JToken

Last

public override JToken Last { get; }

Property Value

JToken

SyncRoot

public object SyncRoot { get; }

Property Value

object

Methods

Add(JToken)

public virtual void Add(JToken item)

Parameters

item JToken

Add(object)

public virtual void Add(object content)

Parameters

content object

AddFirst(object)

public void AddFirst(object content)

Parameters

content object

Children()

public override IEnumerable<JToken> Children()

Returns

IEnumerable<JToken>

Clear()

public virtual void Clear()

Contains(JToken)

public virtual bool Contains(JToken item)

Parameters

item JToken

Returns

bool

Contains(object)

public virtual bool Contains(object value)

Parameters

value object

Returns

bool

CopyTo(JToken[], int)

public virtual void CopyTo(JToken[] array, int arrayIndex)

Parameters

array JToken[]
arrayIndex int

CopyTo(Array, int)

public void CopyTo(Array array, int index)

Parameters

array Array
index int

Descendants()

public IEnumerable<JToken> Descendants()

Returns

IEnumerable<JToken>

DescendantsAndSelf()

public IEnumerable<JToken> DescendantsAndSelf()

Returns

IEnumerable<JToken>

IndexOf(JToken)

public virtual int IndexOf(JToken item)

Parameters

item JToken

Returns

int

IndexOf(object)

public virtual int IndexOf(object value)

Parameters

value object

Returns

int

Insert(int, JToken)

public virtual void Insert(int index, JToken item)

Parameters

index int
item JToken

Insert(int, object)

public virtual void Insert(int index, object value)

Parameters

index int
value object

Merge(object)

public void Merge(object content)

Parameters

content object

Remove(JToken)

public virtual bool Remove(JToken item)

Parameters

item JToken

Returns

bool

Remove(object)

public virtual void Remove(object value)

Parameters

value object

RemoveAll()

public void RemoveAll()

RemoveAt(int)

public virtual void RemoveAt(int index)

Parameters

index int

ReplaceAll(object)

public void ReplaceAll(object content)

Parameters

content object

ToObject<T>()

public override T ToObject<T>()

Returns

T

Type Parameters

T

Values<T>()

public override IEnumerable<T> Values<T>()

Returns

IEnumerable<T>

Type Parameters

T
To top