how to remove x and z constraints

if i use RigidbodyConstraints.None then it will remove everything i only want to remove the x and y

rigidbody.constraints &= ~(RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionY);