Couchbase .NET SDK | 3.3.5
Search Results for

    Show / Hide Table of Contents

    Interface IQueryResult<T>

    Interface for the results of a N1QL query.

    Inherited Members
    IServiceResult.RetryReason
    Namespace: Couchbase.Query
    Assembly: Couchbase.NetClient.dll
    Syntax
    public interface IQueryResult<out T> : IDisposable, IAsyncEnumerable<T>, IServiceResult
    Type Parameters
    Name Description
    T

    Type of row returned by the N1QL query.

    Properties

    | Improve this Doc View Source

    Errors

    Gets a list of 0 or more error objects; if an error occurred during processing of the request, it will be represented by an error object in this list.

    Declaration
    List<Error> Errors { get; }
    Property Value
    Type Description
    List<Error>
    | Improve this Doc View Source

    MetaData

    Gets the meta data associated with the query result. May not be fully populated until after the rows are enumerated.

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

    Rows

    The results of the query as a .

    Declaration
    IAsyncEnumerable<T> Rows { get; }
    Property Value
    Type Description
    IAsyncEnumerable<T>
    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.