Couchbase .NET SDK __CB_SDK_VERSION__

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
[Obsolete("The View service has been deprecated use the Query service instead.")]
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

View Source

MetaData

Gets the query meta data.

Declaration
ViewMetaData? MetaData { get; }
Property Value
Type Description
ViewMetaData
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)
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.