Class ArrayValue
Represents an array of FieldValue instances.
Implements
Inherited Members
Namespace: Oracle.NoSQL.SDK
Assembly: Oracle.NoSQL.SDK.dll
Syntax
public class ArrayValue : FieldValue
Remarks
This class is used to represent values of NoSQL data type Array. It represents its value as a List<T> FieldValue instances and uses zero-based indexes. The list is automatically resized as more values are added.
This class supports all the functionality of IList<T>
interface, including enumeration with foreach loop.
Constructors
| Name | Description |
|---|---|
| ArrayValue() | Initializes a new instance of the ArrayValue that is empty and has the default initial capacity. |
| ArrayValue(IEnumerable<FieldValue>) | Initializes a new instance of ArrayValue that contains elements from the specified collection of FieldValue instances. |
| ArrayValue(Int32) | Initializes a new instance of ArrayValue that is empty and has the specified initial capacity. |
Properties
| Name | Description |
|---|---|
| Count | Gets the number of elements in this ArrayValue instance. |
| DbType | Gets DbType of this instance which represents the type of this value. |
| Item[Int32] | Gets or sets the element at the specified index. |
Methods
| Name | Description |
|---|---|
| Add(FieldValue) | Adds a value to the end of the list represented by this instance. |
| Clear() | Remove all elements from the list represented by this instance. |
| Contains(FieldValue) | Determines whether a specified element is in the list represented by this instance. |
| CopyTo(FieldValue[], Int32) | Copies the entire list represented by this instance to an array of FieldValue, starting at the specified index of the target array. |
| IndexOf(FieldValue) | Searches for the specified value in the list represented by this instance and returns the zero-based index of the first occurrence of this value. |
| Insert(Int32, FieldValue) | Inserts a value into the list represented by this instance at the specified index. |
| Remove(FieldValue) | Removes the first occurrence of a specific value from the list represented by this instance. |
| RemoveAt(Int32) | Removes the element at the specified index from the list represented by this instance. |
| SerializeAsJson(Utf8JsonWriter, JsonOutputOptions) | Writes JSON representation of the value to the stream represented by Utf8JsonWriter. |