Class GetOptions
Assembly: Couchbase.NetClient.dll
Syntax
Constructors
View Source
GetOptions()
Declaration
Fields
View Source
DefaultReadOnly
Declaration
public static readonly GetOptions.ReadOnly DefaultReadOnly
Field Value
Methods
View Source
AsReadOnly()
Declaration
public GetOptions.ReadOnly AsReadOnly()
Returns
View Source
CancellationToken(CancellationToken)
Declaration
public GetOptions CancellationToken(CancellationToken token)
Parameters
Returns
View Source
Deconstruct(out bool, out ReadOnlyCollection<string>, out TimeSpan?, out CancellationToken, out ITypeTranscoder?, out IRetryStrategy?, out IRequestSpan?, out bool)
Declaration
public void Deconstruct(out bool includeExpiry, out ReadOnlyCollection<string> projectList, out TimeSpan? timeout, out CancellationToken token, out ITypeTranscoder? transcoder, out IRetryStrategy? retryStrategy, out IRequestSpan? requestSpan, out bool preferReturn)
Parameters
View Source
Expiry()
The time for the key/value pair to exist on the server.
Declaration
public GetOptions Expiry()
Returns
View Source
Projection(params string[])
A list or array of fields to project - if called will switch to subdoc and only fetch the fields requested.
If the number of fields is > 16, then it will perform a full-doc lookup instead.
Declaration
public GetOptions Projection(params string[] fields)
Parameters
| Type |
Name |
Description |
| string[] |
fields |
|
Returns
View Source
RequestSpan(IRequestSpan)
Inject an external span which will be the parent span of the internal span(s).
Declaration
public GetOptions RequestSpan(IRequestSpan span)
Parameters
Returns
View Source
RetryStrategy(IRetryStrategy)
Declaration
public GetOptions RetryStrategy(IRetryStrategy retryStrategy)
Parameters
Returns
View Source
Timeout(TimeSpan)
The time in which the operation will timeout if it does not complete.
Declaration
public GetOptions Timeout(TimeSpan timeout)
Parameters
Returns
View Source
Transcoder(ITypeTranscoder?)
Declaration
public GetOptions Transcoder(ITypeTranscoder? transcoder)
Parameters
Returns