Class TransactionGetMultiResultBase
Inheritance
TransactionGetMultiResultBase
Inherited Members
Namespace: Couchbase.Client.Transactions
Assembly: Couchbase.NetClient.dll
Syntax
public class TransactionGetMultiResultBase
Methods
| Edit this page View SourceContentAs<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 |
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 |