QueryMessage Constructor (Int32, CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, FuncBoolean) |
Namespace:
MongoDB.Driver.Core.WireProtocol.Messages
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntaxpublic QueryMessage(
int requestId,
CollectionNamespace collectionNamespace,
BsonDocument query,
BsonDocument fields,
IElementNameValidator queryValidator,
int skip,
int batchSize,
bool secondaryOk,
bool partialOk,
bool noCursorTimeout,
bool tailableCursor,
bool awaitData,
Func<bool> shouldBeSent = null
)
Public Sub New (
requestId As Integer,
collectionNamespace As CollectionNamespace,
query As BsonDocument,
fields As BsonDocument,
queryValidator As IElementNameValidator,
skip As Integer,
batchSize As Integer,
secondaryOk As Boolean,
partialOk As Boolean,
noCursorTimeout As Boolean,
tailableCursor As Boolean,
awaitData As Boolean,
Optional shouldBeSent As Func(Of Boolean) = Nothing
)
new :
requestId : int *
collectionNamespace : CollectionNamespace *
query : BsonDocument *
fields : BsonDocument *
queryValidator : IElementNameValidator *
skip : int *
batchSize : int *
secondaryOk : bool *
partialOk : bool *
noCursorTimeout : bool *
tailableCursor : bool *
awaitData : bool *
?shouldBeSent : Func<bool>
(* Defaults:
let _shouldBeSent = defaultArg shouldBeSent null
*)
-> QueryMessage
Parameters
- requestId
- Type: SystemInt32
The request identifier. - collectionNamespace
- Type: MongoDB.DriverCollectionNamespace
The collection namespace. - query
- Type: MongoDB.BsonBsonDocument
The query. - fields
- Type: MongoDB.BsonBsonDocument
The fields. - queryValidator
- Type: MongoDB.Bson.IOIElementNameValidator
The query validator. - skip
- Type: SystemInt32
The number of documents to skip. - batchSize
- Type: SystemInt32
The size of a batch. - secondaryOk
- Type: SystemBoolean
if set to true it is OK if the server is not the primary. - partialOk
- Type: SystemBoolean
if set to true the server is allowed to return partial results if any shards are unavailable. - noCursorTimeout
- Type: SystemBoolean
if set to true the server should not timeout the cursor. - tailableCursor
- Type: SystemBoolean
if set to true the query should return a tailable cursor. - awaitData
- Type: SystemBoolean
if set to true the server should await data (used with tailable cursors). - shouldBeSent (Optional)
- Type: SystemFuncBoolean
A delegate that determines whether this message should be sent.
See Also