new construction wiring a mid-line receptacle to a switch
Normally the receptacle will be wired as in Fig. 1.  To control the receptacle with a switch, you should wire it as in Fig. 2.  


Grounding conductors not shown 

Notice that the switch is interrupting the "hot" wire.  Also notice that the white wire leading to the switch is simply capped off.  This is because code may now require that a neutral be present at switch locations. If this is not required for your installation, you can use two wire cable instead. If you use two wire cable, make sure you reidentify the white wire by marking it at both ends with black tape or marker.