Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class TransactionGetMultiResultBase

Inheritance
object
TransactionGetMultiResultBase
TransactionGetMultiReplicaFromPreferredServerGroupResult
TransactionGetMultiResult
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Client.Transactions
Assembly: Couchbase.NetClient.dll
Syntax
public class TransactionGetMultiResultBase

Methods

View Source

ContentAs<T>(int)

Return content of the result specified by index, as a T.

Declaration
public T? ContentAs<T>(int specIndex)
Parameters
Type Name Description
int specIndex

Index of the result (which matches the index of the specs).

Returns
Type Description
T
Type Parameters
Name Description
T

Return type desired

View Source

Exists(int)

Check for the existence of a document at the specified index. Nice to do before calling ContentAs, just to avoid confusion.

Declaration
public bool Exists(int specIndex)
Parameters
Type Name Description
int specIndex

Index of the result (which matches the index of the specs).

Returns
Type Description
bool

True if the document exists, False otherwise

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown when the index supplied is out of bounds

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