The use of a single characteristic or part of an object, concept or phenomenon to identify the entire object, concept, phenomenon or a related object.
A metonym.
Almost a synonym: a word that means almost the same thing as another.