Click or drag to resize
IChannelGetMoreAsyncTDocument Method
Executes a GetMore protocol.

Namespace: MongoDB.Driver.Core.Bindings
Assembly: 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
)

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: TaskCursorBatchTDocument
A Task whose result is the result of the GetMore protocol.
See Also