Usually, you launch network and sharing center, then click on change adapter setting from left side options, right click on the desired network adapter and select disable. If you often need to enable/disable ethernet network adapter on your pc, the job becomes frustrating and tedious.
Disabling WiFi is pretty easy from software interface on windows, but to disable wired connection, you either need to unplug cable which is not recommended at all or you need to disable LAN/ethernet adapter from software interface. In such a scenario, or some other in your case, you might want to disable particular network connection. Is your computer connected to multiple networks, like wired lan ethernet and wireless WiFi at the same time? If for some reason you prefer wireless over wired, or vice versa, and want all your internet traffic to go through WiFi wireless network but windows chooses otherwise.