Class PersistentList<TValue>
Inheritance
System.Object
PersistentList<TValue>
Implements
System.Collections.ICollection
IList<TValue>
IAsyncEnumerable<TValue>
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class PersistentList<TValue> : PersistentStoreBase<TValue>, IPersistentList<TValue>, Collections.ICollection, IList<TValue>, IAsyncEnumerable<TValue>
Type Parameters
Properties
|
Improve this Doc
View Source
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Item[Int32]
Declaration
public TValue this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
|
Improve this Doc
View Source
Add(TValue)
Declaration
public void Add(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
|
Improve this Doc
View Source
AddAsync(TValue)
Adds an item into the document.
Declaration
public async Task AddAsync(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
Type |
Description |
Task |
A for awaiting.
|
|
Improve this Doc
View Source
Contains(TValue)
Declaration
public bool Contains(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ContainsAsync(TValue)
Checks to see if the document contains an item.
Declaration
public async Task<bool> ContainsAsync(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
Type |
Description |
Task<System.Boolean> |
A for awaiting. True if the item exists, otherwise false.
|
|
Improve this Doc
View Source
CopyTo(TValue[], Int32)
Declaration
public void CopyTo(TValue[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
TValue[] |
array |
|
System.Int32 |
arrayIndex |
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<TValue> GetEnumerator()
Returns
Type |
Description |
IEnumerator<TValue> |
|
|
Improve this Doc
View Source
IndexOf(TValue)
Declaration
public int IndexOf(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IndexOfAsync(TValue)
Returns the index of item in the list.
Declaration
public async Task<int> IndexOfAsync(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
Type |
Description |
Task<System.Int32> |
A for awaiting. The value is the index of item in the list.
|
|
Improve this Doc
View Source
Insert(Int32, TValue)
Declaration
public void Insert(int index, TValue item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
TValue |
item |
|
|
Improve this Doc
View Source
InsertAsync(Int32, TValue)
Inserts an item into the list.
Declaration
public async Task InsertAsync(int index, TValue item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The starting index.
|
TValue |
item |
|
Returns
|
Improve this Doc
View Source
Remove(TValue)
Declaration
public bool Remove(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveAsync(TValue)
Attempts to remove an item from the list.
Declaration
public async Task<bool> RemoveAsync(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
Type |
Description |
Task<System.Boolean> |
True if the item is found and removed; otherwise false.
|
|
Improve this Doc
View Source
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
|
Improve this Doc
View Source
RemoveAtAsync(Int32)
Removes an item item from the list.
Declaration
public async Task RemoveAtAsync(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The starting index.
|
Returns
Type |
Description |
Task |
A for awaiting."
|
|
Improve this Doc
View Source
SetAsync(Int32, TValue)
Declaration
public async Task SetAsync(int index, TValue item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
TValue |
item |
|
Returns
Implements
System.Collections.ICollection
IList<>
IAsyncEnumerable<>