My 2015 F250 had the capability for "me" to name up to 5 trailers in the towing section of the truck's computer. I've got four set up: the Cougar, my boat trailer (no brakes), the flatbed I tow my tractor on and my dump trailer. Selecting the trailer will, as MarcS says, automatically adjust the brake control to that trailer, pull up the mileage "memory" for how far that trailer has been towed and apply power to the trailer charge circuit.
This is somewhat different on the "newer trucks". Apparently the truck won't apply power to the charge circuit until the trailer is "introduced to the truck" by tapping the brake pedal to illuminate the trailer lights. I don't know if this is a "one time, first time" requirement or if it's every time the trailer is connected to the truck via the 7 pin connector....
Here's the comment from the Ford Owner's Manual.
*Your vehicle must recognize the trailer before the trailer can receive power.
Recognizing a Trailer
1. Attach the trailer and wiring connector to your vehicle.
2. Switch on your vehicle.
3. Press the brake pedal for a few seconds.
A confirmation message appears in the information display
My truck (a 2015 "dumb truck") doesn't require this action, it automatically applies power to the trailer charge circuit and I have to manually select which trailer is connected, or I can ignore selecting the trailer and it will "track the last trailer selected". I don't know if the "new trucks" automatically select the trailer or if they just don't apply power until after the brake pedal is pressed.....
Anyway, the general concept that (at least in Fords) power to the trailer charge line is disconnected with "key off" and connected with "key on" has been the way they are wired since at least 1993 (the first one I remember for sure disconnected power with the key off).