Interface IViewResult<TKey, TValue>
Represents the results of a View query.
Inherited Members
Namespace: Couchbase.Views
Assembly: Couchbase.NetClient.dll
Syntax
public interface IViewResult<out TKey, out TValue> : IDisposable, IAsyncEnumerable<IViewRow<TKey, TValue>>, IServiceResult
Type Parameters
Name | Description |
---|---|
TKey | Type of the key for each result row. |
TValue | Type of the value for each result row. |
Properties
| Edit this page View SourceMetaData
Gets the query meta data.
Declaration
ViewMetaData? MetaData { get; }
Property Value
Type | Description |
---|---|
ViewMetaData |
Rows
The results of the query as a IAsyncEnumerable<T>.
Declaration
IAsyncEnumerable<IViewRow<out TKey, out TValue>> Rows { get; }
Property Value
Type | Description |
---|---|
IAsyncEnumerable<IViewRow<TKey, TValue>> |
Remarks
In most cases, the rows may be enumerated only once. If it's necessary to enumerate more than once, use ToListAsync<TSource>(IAsyncEnumerable<TSource>, CancellationToken) to convert to a list. ToListAsync can also be used to enumerate with a synchronous foreach loop in C# 7.