Constructor CursorBatch
- Namespace
- MongoDB.Driver.Core.WireProtocol
- Assembly
- MongoDB.Driver.Core.dll
CursorBatch(long, BsonDocument, IReadOnlyList<TDocument>)
Initializes a new instance of the CursorBatch<TDocument> struct.
public CursorBatch(long cursorId, BsonDocument postBatchResumeToken, IReadOnlyList<TDocument> documents)
Parameters
cursorId
longThe cursor identifier.
postBatchResumeToken
BsonDocumentThe post batch resume token.
documents
IReadOnlyList<TDocument>The documents.
CursorBatch(long, IReadOnlyList<TDocument>)
Initializes a new instance of the CursorBatch<TDocument> struct.
public CursorBatch(long cursorId, IReadOnlyList<TDocument> documents)
Parameters
cursorId
longThe cursor identifier.
documents
IReadOnlyList<TDocument>The documents.