Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Interface IOperationResult

The primary return type for binary Memcached operations

Inherited Members
IResult.ShouldRetry()
IResult.Success
IResult.Message
IResult.Exception
Namespace: Couchbase.Core.IO.Operations
Assembly: Couchbase.NetClient.dll
Syntax
[Obsolete("This interface is not required and will be removed in a future release.")]
public interface IOperationResult : IResult

Properties

View Source

Cas

The 'Check and Set' or 'CAS' value for enforcing optimistic concurrency.

Declaration
ulong Cas { get; set; }
Property Value
Type Description
ulong
View Source

Durability

The level of durability that the operation achieved

Declaration
Durability Durability { get; set; }
Property Value
Type Description
Durability
View Source

Id

Gets the id or key for the document.

Declaration
string? Id { get; }
Property Value
Type Description
string

The identifier.

View Source

OpCode

Gets the op code.

Declaration
OpCode OpCode { get; }
Property Value
Type Description
OpCode

The op code.

View Source

Status

The server's response status for the operation.

Declaration
ResponseStatus Status { get; }
Property Value
Type Description
ResponseStatus
View Source

Token

Gets the mutation token for the operation if enhanced durability is enabled.

Declaration
MutationToken? Token { get; }
Property Value
Type Description
MutationToken

The mutation token.

Remarks

Note: this is used internally for enhanced durability if supported by the Couchbase server version and enabled by clusterOptions.

Methods

View Source

IsNmv()

Checks if the server responded with a Not My Vbucket.

Declaration
bool IsNmv()
Returns
Type Description
bool

Returns true if ResponseStatus is a VBucketBelongsToAnotherServer.

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