Class ListIndexesOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents a list indexes operation.
public class ListIndexesOperation : IReadOperation<IAsyncCursor<BsonDocument>>
- Inheritance
-
ListIndexesOperation
- Implements
- Inherited Members
- Extension Methods
Constructors
ListIndexesOperation(CollectionNamespace, MessageEncoderSettings)
Initializes a new instance of the ListIndexesOperation class.
public ListIndexesOperation(CollectionNamespace collectionNamespace, MessageEncoderSettings messageEncoderSettings)
Parameters
collectionNamespace
CollectionNamespaceThe collection namespace.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.
Properties
BatchSize
Gets or sets the batch size.
public int? BatchSize { get; set; }
Property Value
- int?
The batch size.
CollectionNamespace
Gets the collection namespace.
public CollectionNamespace CollectionNamespace { get; }
Property Value
- CollectionNamespace
The collection namespace.
Comment
Gets or sets the comment.
public BsonValue Comment { get; set; }
Property Value
- BsonValue
The comment.
MessageEncoderSettings
Gets the message encoder settings.
public MessageEncoderSettings MessageEncoderSettings { get; }
Property Value
- MessageEncoderSettings
The message encoder settings.
RetryRequested
Gets or sets whether or not retry was requested.
public bool RetryRequested { get; set; }
Property Value
- bool
Whether retry was requested.
Methods
Execute(IReadBinding, CancellationToken)
Executes the operation.
public IAsyncCursor<BsonDocument> Execute(IReadBinding binding, CancellationToken cancellationToken)
Parameters
binding
IReadBindingThe binding.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<BsonDocument>
The result of the operation.
ExecuteAsync(IReadBinding, CancellationToken)
Executes the operation.
public Task<IAsyncCursor<BsonDocument>> ExecuteAsync(IReadBinding binding, CancellationToken cancellationToken)
Parameters
binding
IReadBindingThe binding.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IAsyncCursor<BsonDocument>>
A Task whose result is the result of the operation.