Constructor ReplyMessage
- Namespace
- MongoDB.Driver.Core.WireProtocol.Messages
- Assembly
- MongoDB.Driver.Core.dll
ReplyMessage(bool, long, bool, List<TDocument>, int, bool, BsonDocument, int, int, IBsonSerializer<TDocument>, int)
Initializes a new instance of the ReplyMessage<TDocument> class.
public ReplyMessage(bool awaitCapable, long cursorId, bool cursorNotFound, List<TDocument> documents, int numberReturned, bool queryFailure, BsonDocument queryFailureDocument, int requestId, int responseTo, IBsonSerializer<TDocument> serializer, int startingFrom)
Parameters
awaitCapable
boolif set to
true
the server is await capable.cursorId
longThe cursor identifier.
cursorNotFound
boolif set to
true
the cursor was not found.documents
List<TDocument>The documents.
numberReturned
intThe number of documents returned.
queryFailure
boolif set to
true
the query failed.queryFailureDocument
BsonDocumentThe query failure document.
requestId
intThe request identifier.
responseTo
intThe identifier of the message this is a response to.
serializer
IBsonSerializer<TDocument>The serializer.
startingFrom
intThe position of the first document in this batch in the overall result.