Class DropPrimaryQueryIndexOptions
Inheritance
DropPrimaryQueryIndexOptions
Assembly: Couchbase.NetClient.dll
Syntax
public class DropPrimaryQueryIndexOptions
Constructors
View Source
DropPrimaryQueryIndexOptions()
Declaration
public DropPrimaryQueryIndexOptions()
Fields
View Source
DefaultReadOnly
Declaration
public static readonly DropPrimaryQueryIndexOptions.ReadOnly DefaultReadOnly
Field Value
Properties
View Source
Default
Declaration
public static DropPrimaryQueryIndexOptions Default { get; }
Property Value
Methods
View Source
AsReadOnly()
Declaration
public DropPrimaryQueryIndexOptions.ReadOnly AsReadOnly()
Returns
View Source
CancellationToken(CancellationToken)
Allows to pass in a custom CancellationToken from a CancellationTokenSource.
Note that CancellationToken() takes precedence over Timeout(). If both CancellationToken and Timeout are set, the former will be used in the operation.
Declaration
public DropPrimaryQueryIndexOptions CancellationToken(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| CancellationToken |
cancellationToken |
The Token to cancel the operation.
|
Returns
View Source
CollectionName(string)
Sets the collection name for this query management operation.
Declaration
[Obsolete("Use collection.QueryIndexes instead.")]
public DropPrimaryQueryIndexOptions CollectionName(string collectionName)
Parameters
| Type |
Name |
Description |
| string |
collectionName |
The collection name to use.
|
Returns
View Source
Deconstruct(out string?, out bool, out CancellationToken, out string?, out string?, out string?, out TimeSpan)
Declaration
public void Deconstruct(out string? indexNameValue, out bool ignoreIfExistsValue, out CancellationToken tokenValue, out string? scopeNameValue, out string? collectionNameValue, out string? queryContext, out TimeSpan timeoutValue)
Parameters
View Source
IgnoreIfExists(bool)
Declaration
public DropPrimaryQueryIndexOptions IgnoreIfExists(bool ignoreIfExists)
Parameters
| Type |
Name |
Description |
| bool |
ignoreIfExists |
|
Returns
View Source
IndexName(string)
Declaration
public DropPrimaryQueryIndexOptions IndexName(string indexName)
Parameters
| Type |
Name |
Description |
| string |
indexName |
|
Returns
View Source
RequestSpan(IRequestSpan)
Declaration
public DropPrimaryQueryIndexOptions RequestSpan(IRequestSpan span)
Parameters
Returns
View Source
ScopeName(string)
Sets the scope name for this query management operation.
Declaration
[Obsolete("Use collection.QueryIndexes instead.")]
public DropPrimaryQueryIndexOptions ScopeName(string scopeName)
Parameters
| Type |
Name |
Description |
| string |
scopeName |
The scope name to use.
|
Returns
View Source
Timeout(TimeSpan)
Allows to set a Timeout for the operation.
Note that CancellationToken() takes precedence over Timeout(). If both CancellationToken and Timeout are set, the former will be used in the operation.
Declaration
public DropPrimaryQueryIndexOptions Timeout(TimeSpan timeout)
Parameters
| Type |
Name |
Description |
| TimeSpan |
timeout |
The duration of the Timeout. Set to 75s by default.
|
Returns