Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Interface ITryTouchResult

Provides an interface for 'touching' a document, but instead of throwing DocumentNotFoundException exception if the document key is not found, allows for the existence to be checked via Exists.

Namespace: Couchbase.KeyValue
Assembly: Couchbase.NetClient.dll
Syntax
public interface ITryTouchResult

Properties

View Source

DocumentExists

If false, the document does not exist on the server for a given key.

Declaration
bool DocumentExists { get; }
Property Value
Type Description
bool
View Source

Exists

If false, the document does not exist on the server for a given key.

Declaration
[Obsolete("Use DocumentExists instead")]
bool Exists { get; }
Property Value
Type Description
bool
View Source

MutationResult

The mutation result containing the Cas value after the Touch operation. If Exists is false, this will be empty.

Declaration
IMutationResult? MutationResult { get; }
Property Value
Type Description
IMutationResult
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.