Neil Patrick Harris. He is known primarily for his comedy roles on television and his dramatic and musical stage roles. On television, he is known for playing the title character on Doogie Howser, M. D. ( ), Barney Stinson on How I Met Your Mother (, for which he was nominated for four Emmy Awards ),