IChannelGetMoreAsyncTDocument Method |
Executes a GetMore protocol.
Namespace: MongoDB.Driver.Core.BindingsAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.3.0
Syntax Task<CursorBatch<TDocument>> GetMoreAsync<TDocument>(
CollectionNamespace collectionNamespace,
BsonDocument query,
long cursorId,
int batchSize,
IBsonSerializer<TDocument> serializer,
MessageEncoderSettings messageEncoderSettings,
CancellationToken cancellationToken
)
Function GetMoreAsync(Of TDocument) (
collectionNamespace As CollectionNamespace,
query As BsonDocument,
cursorId As Long,
batchSize As Integer,
serializer As IBsonSerializer(Of TDocument),
messageEncoderSettings As MessageEncoderSettings,
cancellationToken As CancellationToken
) As Task(Of CursorBatch(Of TDocument))
abstract GetMoreAsync :
collectionNamespace : CollectionNamespace *
query : BsonDocument *
cursorId : int64 *
batchSize : int *
serializer : IBsonSerializer<'TDocument> *
messageEncoderSettings : MessageEncoderSettings *
cancellationToken : CancellationToken -> Task<CursorBatch<'TDocument>>
Parameters
- collectionNamespace
- Type: MongoDB.DriverCollectionNamespace
The collection namespace. - query
- Type: MongoDB.BsonBsonDocument
The query. - cursorId
- Type: SystemInt64
The cursor identifier. - batchSize
- Type: SystemInt32
Size of the batch. - serializer
- Type: MongoDB.Bson.SerializationIBsonSerializerTDocument
The serializer. - messageEncoderSettings
- Type: MongoDB.Driver.Core.WireProtocol.Messages.EncodersMessageEncoderSettings
The message encoder settings. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Type Parameters
- TDocument
- The type of the document.
Return Value
Type:
TaskCursorBatchTDocumentA Task whose result is the result of the GetMore protocol.
See Also