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.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
public sealed class CommandMessage : MongoDBMessage

The CommandMessage type exposes the following members.

Public methodCommandMessage
Initializes a new instance of the CommandMessage class.
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.
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.)
Extension Methods
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.)
See Also