How do you Timeout a function in C#?

How do you Timeout a function in C#?