Depending on the dock, it can power your laptop through a charge/discharge cycle or simply charge the battery as needed. Some laptops can use both battery and docking power under heavy workloads, so it all depends on the dock and the laptop.