CSMongo.Commands.MongoDatabaseCommands.SetQueryTraceLevel C# (CSharp) 메소드

SetQueryTraceLevel() 공개 정적인 메소드

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