Metonymy:
Metonymy is a figure of speech that substitutes the name of a related object, person, or idea for the subject at hand. Crown is often substituted for monarchy, the White House for the President of the United States and the staff, and Shakespeare for the works of Shakespeare. Metonymy should not be confused with synecdoche, a substitution of a part of something for the whole or the for a part.