Method RunCommand
RunCommand(IMongoCommand)
Runs a command on this database.
public virtual CommandResult RunCommand(IMongoCommand command)
Parameters
command
IMongoCommandThe command object.
Returns
- CommandResult
A CommandResult
RunCommand(string)
Runs a command on this database.
public virtual CommandResult RunCommand(string commandName)
Parameters
commandName
stringThe name of the command.
Returns
- CommandResult
A CommandResult