What is the script for playing an animation in unity 5?

I downloaded Unity 5. Now i have the problem that i dont know how to write in a script that a animation should play.
The old version was :
GameObject.Find(“name”).animation.Play(“animationname”);

please help me.

i answered it myself