Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class BucketExtensions

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

Methods

View Source

PingAsync(IBucket, params ServiceType[])

Declaration
public static Task<IPingReport> PingAsync(this IBucket bucket, params ServiceType[] serviceTypes)
Parameters
Type Name Description
IBucket bucket
ServiceType[] serviceTypes
Returns
Type Description
Task<IPingReport>
View Source

PingAsync(IBucket, Action<PingOptions>)

Declaration
public static Task<IPingReport> PingAsync(this IBucket bucket, Action<PingOptions> configureOptions)
Parameters
Type Name Description
IBucket bucket
Action<PingOptions> configureOptions
Returns
Type Description
Task<IPingReport>
View Source

PingAsync(IBucket, string, params ServiceType[])

Declaration
public static Task<IPingReport> PingAsync(this IBucket bucket, string reportId, params ServiceType[] serviceTypes)
Parameters
Type Name Description
IBucket bucket
string reportId
ServiceType[] serviceTypes
Returns
Type Description
Task<IPingReport>
View Source

ViewQueryAsync<TKey, TValue>(IBucket, string, string)

Execute a view query.

Declaration
[Obsolete("The View service has been deprecated use the Query service instead.")]
public static Task<IViewResult<TKey, TValue>> ViewQueryAsync<TKey, TValue>(this IBucket bucket, string designDocument, string viewName)
Parameters
Type Name Description
IBucket bucket

IBucket to execute the query against.

string designDocument

Design document name.

string viewName

View name.

Returns
Type Description
Task<IViewResult<TKey, TValue>>

An IViewResult<TKey, TValue>.

Type Parameters
Name Description
TKey

Type of the key for each result row.

TValue

Type of the value for each result row.

View Source

ViewQueryAsync<TKey, TValue>(IBucket, string, string, Action<ViewOptions>)

Execute a view query.

Declaration
[Obsolete("The View service has been deprecated use the Query service instead.")]
public static Task<IViewResult<TKey, TValue>> ViewQueryAsync<TKey, TValue>(this IBucket bucket, string designDocument, string viewName, Action<ViewOptions> configureOptions)
Parameters
Type Name Description
IBucket bucket

IBucket to execute the query against.

string designDocument

Design document name.

string viewName

View name.

Action<ViewOptions> configureOptions

Action to configure the ViewOptions controlling query execution.

Returns
Type Description
Task<IViewResult<TKey, TValue>>

An IViewResult<TKey, TValue>.

Type Parameters
Name Description
TKey

Type of the key for each result row.

TValue

Type of the value for each result row.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.