Table of Contents

Class QueryMessage

Namespace
MongoDB.Driver.Core.WireProtocol.Messages
Assembly
MongoDB.Driver.Core.dll

Represents a Query message.

public class QueryMessage : RequestMessage, IEncodableMessage
Inheritance
QueryMessage
Implements
Inherited Members

Constructors

QueryMessage(int, CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, int, int, bool, bool, bool, bool, bool, bool, Func<bool>)

Initializes a new instance of the QueryMessage class.

QueryMessage(int, CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, int, int, bool, bool, bool, bool, bool, Func<bool>)

Initializes a new instance of the QueryMessage class.

Properties

AwaitData

Gets a value indicating whether the server should await data (used with tailable cursors).

BatchSize

Gets the size of a batch.

CollectionNamespace

Gets the collection namespace.

Fields

Gets the fields.

MessageType

Gets the type of the message.

NoCursorTimeout

Gets a value indicating whether the server should not timeout the cursor.

OplogReplay

Gets a value indicating whether the OplogReplay bit will be set.

PartialOk

Gets a value indicating whether the server is allowed to return partial results if any shards are unavailable.

PostWriteAction

Gets or sets the delegate called to after the message has been written by the encoder.

Query

Gets the query.

QueryValidator

Gets the query validator.

ResponseHandling

Gets or sets the response handling.

SecondaryOk

Gets a value indicating whether it is OK if the server is not the primary.

Skip

Gets the number of documents to skip.

TailableCursor

Gets a value indicating whether the query should return a tailable cursor.

Methods

GetEncoder(IMessageEncoderFactory)

Gets an encoder for the message from an encoder factory.