Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Interface IResult

Default interface for all operation return types.

Namespace: Couchbase.Core.IO.Operations
Assembly: Couchbase.NetClient.dll
Syntax
public interface IResult

Properties

View Source

Exception

If Success is false and an exception has been caught internally, this field will contain the exception.

Declaration
Exception Exception { get; }
Property Value
Type Description
Exception
View Source

Message

If the operation wasn't succesful, a message indicating why it was not succesful.

Declaration
string Message { get; }
Property Value
Type Description
string
View Source

Success

Returns true if the operation was succesful.

Declaration
bool Success { get; }
Property Value
Type Description
bool
Remarks

If Success is false, use the Message property to help determine the reason.

Methods

View Source

ShouldRetry()

If the response indicates the request is retryable, returns true.

Declaration
bool ShouldRetry()
Returns
Type Description
bool
Remarks

Intended for internal use only.

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