Interface IJsonArray
Interface that is used for the custom implementation of JSON Array type to be used in NCache.
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public interface IJsonArray : ICollection<JsonValueBase>, IEnumerable<JsonValueBase>, IEnumerable
Properties
Item[Int32]
Indexer for the JSON array.
Declaration
JsonValueBase this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the JSON value. |
Property Value
Type | Description |
---|---|
JsonValueBase | JSON value on that index. |
Methods
Add(JsonValue)
Adds item to the JSON Array.
Declaration
void Add(JsonValue item)
Parameters
Type | Name | Description |
---|---|---|
JsonValue | item | Item to be added. |
Contains(JsonValue)
Checks if the item exists in the JSON array.
Declaration
bool Contains(JsonValue item)
Parameters
Type | Name | Description |
---|---|---|
JsonValue | item | Value to check. |
Returns
Type | Description |
---|---|
System.Boolean | True, in case array contains the item. |
Remove(JsonValue)
Removes item from the JSON Array.
Declaration
bool Remove(JsonValue item)
Parameters
Type | Name | Description |
---|---|---|
JsonValue | item | Item to be removed. |
Returns
Type | Description |
---|---|
System.Boolean | True, if removed successfully. |