Class PersistentList<TValue>
Inheritance
PersistentList<TValue>
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class PersistentList<TValue> : PersistentStoreBase<TValue>, IPersistentList<TValue>, ICollection, IList<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable, IAsyncEnumerable<TValue>
Type Parameters
Properties
|
Edit this page
View Source
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
|
Edit this page
View Source
this[int]
Declaration
[Obsolete("This method is blocking; please use the async equivalent instead.")]
public TValue this[int index] { get; set; }
Parameters
Type |
Name |
Description |
int |
index |
|
Property Value
Methods
|
Edit this page
View Source
Add(TValue)
Declaration
[Obsolete("This method is blocking; please use the async version instead.")]
public void Add(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
|
Edit this page
View Source
AddAsync(TValue)
Adds an item into the document.
Declaration
public Task AddAsync(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
The item to add.
|
Returns
Type |
Description |
Task |
A Task for awaiting.
|
|
Edit this page
View Source
Contains(TValue)
Declaration
[Obsolete("This method is blocking; please use the async version instead.")]
public bool Contains(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
|
Edit this page
View Source
ContainsAsync(TValue)
Checks to see if the document contains an item.
Declaration
public Task<bool> ContainsAsync(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
The item T to check for its existence.
|
Returns
|
Edit this page
View Source
CopyTo(TValue[], int)
Declaration
[Obsolete("This method is blocking; please use the async version instead.")]
public void CopyTo(TValue[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
TValue[] |
array |
|
int |
arrayIndex |
|
|
Edit this page
View Source
GetEnumerator()
Declaration
[Obsolete("This method is blocking; please use the async version instead.")]
public IEnumerator<TValue> GetEnumerator()
Returns
|
Edit this page
View Source
IndexOf(TValue)
Declaration
[Obsolete("This method is blocking; please use the async version instead.")]
public int IndexOf(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
|
Edit this page
View Source
IndexOfAsync(TValue)
Returns the index of item in the list.
Declaration
public Task<int> IndexOfAsync(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
An item which should have Object.Equals() overridden.
|
Returns
Type |
Description |
Task<int> |
A Task<TResult> for awaiting. The value is the index of item in the list.
|
|
Edit this page
View Source
Insert(int, TValue)
Declaration
[Obsolete("This method is blocking; please use the async version instead.")]
public void Insert(int index, TValue item)
Parameters
Type |
Name |
Description |
int |
index |
|
TValue |
item |
|
|
Edit this page
View Source
InsertAsync(int, TValue)
Inserts an item into the list.
Declaration
public Task InsertAsync(int index, TValue item)
Parameters
Type |
Name |
Description |
int |
index |
The starting index.
|
TValue |
item |
An item which should have Object.Equals() overridden.
|
Returns
|
Edit this page
View Source
Remove(TValue)
Declaration
[Obsolete("This method is blocking; please use the async version instead.")]
public bool Remove(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
|
Edit this page
View Source
RemoveAsync(TValue)
Attempts to remove an item from the list.
Declaration
public Task<bool> RemoveAsync(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
An item which should have Object.Equals() overridden.
|
Returns
Type |
Description |
Task<bool> |
True if the item is found and removed; otherwise false.
|
|
Edit this page
View Source
RemoveAt(int)
Declaration
[Obsolete("This method is blocking; please use the async version instead.")]
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
|
Edit this page
View Source
RemoveAtAsync(int)
Removes an item item from the list.
Declaration
public Task RemoveAtAsync(int index)
Parameters
Type |
Name |
Description |
int |
index |
The starting index.
|
Returns
Type |
Description |
Task |
A Task for awaiting."
|
|
Edit this page
View Source
SetAsync(int, TValue)
Declaration
public Task SetAsync(int index, TValue item)
Parameters
Type |
Name |
Description |
int |
index |
|
TValue |
item |
|
Returns
Implements