WrapMode.Once

I’d like to make a animation show once only but i’m not getting, the wrapmode changer in inspector is locked. How to do it programatically in C#?

Some minutes ago i got to fix it. You can skip ths thread