Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Interface IViewResult<TKey, TValue>

    Represents the results of a View query.

    Inherited Members
    IDisposable.Dispose()
    IAsyncEnumerable<IViewRow<TKey, TValue>>.GetAsyncEnumerator(CancellationToken)
    IServiceResult.RetryReason
    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 Source

    MetaData

    Gets the query meta data.

    Declaration
    ViewMetaData? MetaData { get; }
    Property Value
    Type Description
    ViewMetaData
    | Edit this page View Source

    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.

    Extension Methods

    ServiceResultExtensions.ThrowOnNoRetry(IServiceResult)
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.