What is the equivalent to Screen.lockCursor = true; in Unity 5?

In the old Unity, you could use Screen.lockCursor = true; in start to lock the cursor for an fps. How can you accomplish this in Unity 5?

Screen.lockCursor has become Cursor.lockState

https://unity3d.com/unity/whats-new/unity-5.0