In this case your partner opens the bidding with one diamond. Right hand opponent overcalls one heart, You hold:
You have just enought strength to make a negative double with bidding still at the one level. Double by you says to partner that you hold exactly four spades and 6+points. If you held 5+ spades you would instead bid one spade.