I have a requirement on the ongoing project to allow the tables to be accessed by only the users with right privileges. So I am looking for methods to disable adding tables to view programmatically. I know about looking for the standalone table getting added to StandAloneTable Collection but it is after the fact that user had tried to open the table by clicking the "Open Attribute Table" in right click context menu on the layer in TOC. But It would be good to disable the "Open Attribute Table" menu item instead of allowing user to click and find out.
Is there any way to disable the "Add Table" and "Open Attribute Table" menu items in TOC of ArcMap programmatically?
Here is the image of right click Context menu item, I want to disable.