Table of Contents

Class CommandResult

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Represents the result of a command (there are also subclasses for various commands).

[Serializable]
[BsonSerializer(typeof(CommandResultSerializer<CommandResult>))]
public class CommandResult
Inheritance
CommandResult
Derived
Inherited Members
Extension Methods

Constructors

CommandResult(BsonDocument)

Initializes a new instance of the CommandResult class.

Properties

Code

Gets the code.

ErrorMessage

Gets the error message (null if none).

Ok

Gets the Ok value from the response.

Response

Gets the response.