Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Class ScopeExtensions

    Inheritance
    object
    ScopeExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Couchbase
    Assembly: Couchbase.NetClient.dll
    Syntax
    public static class ScopeExtensions

    Methods

    | Edit this page View Source

    AnalyticsQueryAsync<T>(IScope, string, Action<AnalyticsOptions>)

    Executes a analytics query on the server.

    Declaration
    public static Task<IAnalyticsResult<T>> AnalyticsQueryAsync<T>(this IScope scope, string statement, Action<AnalyticsOptions> configureOptions)
    Parameters
    Type Name Description
    IScope scope

    The calling scope.

    string statement

    The statement to execute.

    Action<AnalyticsOptions> configureOptions
    Returns
    Type Description
    Task<IAnalyticsResult<T>>

    A Task that can be awaited for the results of the query.

    Type Parameters
    Name Description
    T

    The type of the result.

    | Edit this page View Source

    QueryAsync<T>(IScope, string)

    Executes a N1QL query on the server.

    Declaration
    public static Task<IQueryResult<T>> QueryAsync<T>(this IScope scope, string statement)
    Parameters
    Type Name Description
    IScope scope

    The calling scope.

    string statement

    The statement to execute.

    Returns
    Type Description
    Task<IQueryResult<T>>

    A Task that can be awaited for the results of the query.

    Type Parameters
    Name Description
    T

    The type of the result.

    | Edit this page View Source

    QueryAsync<T>(IScope, string, Action<QueryOptions>)

    Executes a N1QL query on the server.

    Declaration
    public static Task<IQueryResult<T>> QueryAsync<T>(this IScope scope, string statement, Action<QueryOptions> configureOptions)
    Parameters
    Type Name Description
    IScope scope

    The calling scope.

    string statement

    The statement to execute.

    Action<QueryOptions> configureOptions

    Any options as a lambda.

    Returns
    Type Description
    Task<IQueryResult<T>>

    A Task that can be awaited for the results of the query.

    Type Parameters
    Name Description
    T

    The type of the result.

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.