How to disable renaming a Document Library item using “Open with Explorer”
-
07-10-2020 - |
Question
As you can see here, rename event of list item via Windows Explorer is handler by ItemFileMoved event.
So, I was trying to prevent this edit by the usual way of preventing ItemUpdating:
properties.Cancel = true;
properties.ErrorMessage = "You cannot edit.";
While it works in the ItemUpdating event when trying to rename an item from SharePoint UI, it doesn't cancel the rename event from Windows Explorer.
Is there any other way of doing this?
And I don't mean disabling the whole possibility of opening the library with Explorer, it would be an overkill.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange