Couchbase .NET SDK | 3.3.4
Search Results for

    Show / Hide Table of Contents

    Interface IViewResult<TKey, TValue>

    Represents the results of a View query.

    Inherited Members
    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

    | Improve this Doc View Source

    MetaData

    Gets the query meta data.

    Declaration
    ViewMetaData MetaData { get; }
    Property Value
    Type Description
    ViewMetaData
    | Improve this Doc View Source

    Rows

    The results of the query as a .

    Declaration
    IAsyncEnumerable<IViewRow<TKey, 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 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)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2022 Couchbase, Inc.