How to change Rigidbody interpolate through script.

I need to switch Rigidbody interpolate to none when a function runs, And I don’t know the syntax of it. Help

rb.interpolation = RigidbodyInterpolation.None