Click or drag to resize

ArrayObject Class

A class representing an editable collection of objects
Inheritance Hierarchy

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0295
Syntax
C#
public sealed class ArrayObject : ReadOnlyArray, 
	IArray, IReadOnlyArray, IReadOnlyArrayFragment, IEnumerable<Object>, 
	IEnumerable, IArrayFragment

The ArrayObject type exposes the following members.

Constructors
  NameDescription
Public methodArrayObject
Default Constructor
Public methodArrayObject(IList)
Creates an array with the given data
Top
Properties
  NameDescription
Public propertyCount
Gets the number of elements in the collection
(Overrides ReadOnlyArrayCount.)
Public propertyItem
Gets the value of the given index, or lack thereof, wrapped inside of a Fragment
Top
Methods
  NameDescription
Public methodAdd(Boolean)
Adds an entry to this collection
Public methodAdd(DateTimeOffset)
Adds an entry to this collection
Public methodAdd(Double)
Adds an entry to this collection
Public methodAdd(Int32)
Adds an entry to this collection
Public methodAdd(Int64)
Adds an entry to this collection
Public methodAdd(Object)
Adds an entry to this collection
Public methodAdd(Single)
Adds an entry to this collection
Public methodAdd(String)
Adds an entry to this collection
Public methodAdd(ArrayObject)
Adds an entry to this collection
Public methodAdd(Blob)
Adds an entry to this collection
Public methodAdd(DictionaryObject)
Adds an entry to this collection
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetArray
Gets the value at the given index as an array
Public methodGetBlob
Gets the value at the given index as a Blob
(Overrides ReadOnlyArrayGetBlob(Int32).)
Public methodGetBoolean
Gets the value at the given index as a Boolean
(Overrides ReadOnlyArrayGetBoolean(Int32).)
Public methodGetDate
Gets the value at the given index as a DateTimeOffset
(Overrides ReadOnlyArrayGetDate(Int32).)
Public methodGetDictionary
Gets the value at the given index as an IDictionaryObject
Public methodGetDouble
Gets the value at the given index as a Double
(Overrides ReadOnlyArrayGetDouble(Int32).)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Overrides ReadOnlyArrayGetEnumerator.)
Public methodGetFloat
Gets the value at the given index as a Single
(Overrides ReadOnlyArrayGetFloat(Int32).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInt
Gets the value at the given index as an Int32
(Overrides ReadOnlyArrayGetInt(Int32).)
Public methodGetLong
Gets the value at the given index as an Int64
(Overrides ReadOnlyArrayGetLong(Int32).)
Public methodGetObject
Gets the value at the given index as an untyped object
(Overrides ReadOnlyArrayGetObject(Int32).)
Public methodGetString
Gets the value at the given index as a String
(Overrides ReadOnlyArrayGetString(Int32).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert(Int32, ArrayObject)
Inserts a given value at the given index
Public methodInsert(Int32, Blob)
Inserts a given value at the given index
Public methodInsert(Int32, DictionaryObject)
Inserts a given value at the given index
Public methodInsert(Int32, Boolean)
Inserts a given value at the given index
Public methodInsert(Int32, DateTimeOffset)
Inserts a given value at the given index
Public methodInsert(Int32, Double)
Inserts a given value at the given index
Public methodInsert(Int32, Int32)
Inserts a given value at the given index
Public methodInsert(Int32, Int64)
Inserts a given value at the given index
Public methodInsert(Int32, Object)
Inserts a given value at the given index
Public methodInsert(Int32, Single)
Inserts a given value at the given index
Public methodInsert(Int32, String)
Inserts a given value at the given index
Public methodRemoveAt
Removes the item at the given index
Public methodSet(IList)
Replaces the contents of this collection with the contents of the given one
Public methodSet(Int32, ArrayObject)
Overwrites the value at the given index with the given value
Public methodSet(Int32, Blob)
Overwrites the value at the given index with the given value
Public methodSet(Int32, DictionaryObject)
Overwrites the value at the given index with the given value
Public methodSet(Int32, Boolean)
Overwrites the value at the given index with the given value
Public methodSet(Int32, DateTimeOffset)
Overwrites the value at the given index with the given value
Public methodSet(Int32, Double)
Overwrites the value at the given index with the given value
Public methodSet(Int32, Int32)
Overwrites the value at the given index with the given value
Public methodSet(Int32, Int64)
Overwrites the value at the given index with the given value
Public methodSet(Int32, Object)
Overwrites the value at the given index with the given value
Public methodSet(Int32, Single)
Overwrites the value at the given index with the given value
Public methodSet(Int32, String)
Overwrites the value at the given index with the given value
Public methodToList
Converts this object to a standard .NET collection
(Overrides ReadOnlyArrayToList.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also