how to write autoConfigureConnectedAnchor correctly

how to write autoConfigureConnectedAnchor correctly so that it can be disabled using the script?

My solution

theJoint = NewBlock.AddComponent();
theJoint.autoConfigureConnectedAnchor = false;