Click or drag to resize

CommandMessage Class

Represents a command message.
Inheritance Hierarchy

Namespace:  MongoDB.Driver.Core.WireProtocol.Messages
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntax
public sealed class CommandMessage : MongoDBMessage

The CommandMessage type exposes the following members.

Constructors
  NameDescription
Public methodCommandMessage
Initializes a new instance of the CommandMessage class.
Top
Properties
  NameDescription
Public propertyExhaustAllowed
Gets or sets a value indicating whether multiple responses might be returned from the server or not.
Public propertyMayBeCompressed
Gets the flag whether the message may be compressed or not.
(Overrides MongoDBMessageMayBeCompressed.)
Public propertyMessageType
Gets the type of the message.
(Overrides MongoDBMessageMessageType.)
Public propertyMoreToCome
Gets or sets a value indicating whether another message immediately follows this one with no response expected.
Public propertyPostWriteAction
Gets or sets the delegate called to after the message has been written by the encoder.
Public propertyRequestId
Gets the request identifier.
Public propertyResponseExpected
Gets a value indicating whether a response is expected.
Public propertyResponseTo
Gets the response to.
Public propertySections
Gets the sections.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEncoder
Gets an encoder for the message from an encoder factory.
(Overrides MongoDBMessageGetEncoder(IMessageEncoderFactory).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also