Table of Contents

Class ResponseMessage

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

Represents a base class for response messages.

public abstract class ResponseMessage : MongoDBMessage, IEncodableMessage
Inheritance
ResponseMessage
Implements
Derived
Inherited Members

Constructors

ResponseMessage(int, int)

Initializes a new instance of the ResponseMessage class.

protected ResponseMessage(int requestId, int responseTo)

Parameters

requestId int

The request identifier.

responseTo int

The identifier of the message this is a response to.

Properties

MessageType

Gets the type of the message.

public override MongoDBMessageType MessageType { get; }

Property Value

MongoDBMessageType

RequestId

Gets the request identifier.

public int RequestId { get; }

Property Value

int

ResponseTo

Gets the identifier of the message this is a response to.

public int ResponseTo { get; }

Property Value

int