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