CSMongo.Commands.MongoDatabaseCommands.SetQueryTraceLevel C# (CSharp) Méthode

SetQueryTraceLevel() public static méthode

Sets the level for the Query Trace in the database
public static SetQueryTraceLevel ( MongoDatabase database, int level ) : MethodResult
database MongoDatabase
level int
Résultat CSMongo.Results.MethodResult
        public static MethodResult SetQueryTraceLevel(MongoDatabase database, int level)
        {
            CommandResponse result = MongoDatabaseCommands.RunCommand(database, new { queryTraceLevel = level });
            return new MethodResult(result.GetDefaultResponse());
        }