Hey,
I tested what @naveen.kumar.t provided you. It is working. Just one detail to mention is that the icons are not updated after modify the properties... until you click one of them from the UI. Then they are updated.
SelectionUIOptions selectionUIOptions = SelectionUIOptions.GetSelectionUIOptions();
selectionUIOptions.SelectLinks = false;
selectionUIOptions.SelectUnderlay = false;
selectionUIOptions.SelectFaces = false;
selectionUIOptions.SelectPinned = false;
selectionUIOptions.DragOnSelection = false;
This is the result after run this code, everything is locked but icons haven't changed.

If I click one of them, it changes and the rest are updated.

Kind regards.
Github:
https://github.com/franpossetto