Table of Contents

Method RunCommand

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

RunCommand(IMongoCommand)

Runs a command on this database.

public virtual CommandResult RunCommand(IMongoCommand command)

Parameters

command IMongoCommand

The command object.

Returns

CommandResult

A CommandResult

RunCommand(string)

Runs a command on this database.

public virtual CommandResult RunCommand(string commandName)

Parameters

commandName string

The name of the command.

Returns

CommandResult

A CommandResult