Forum Discussion

rmgarcia's avatar
rmgarcia
Copper Contributor
May 09, 2022

Lock file NOT office in sharepoint

Hi,

 

I have a SharePoint 2016 On-Premise, (V. 16.0.10337.12109).

 

With files not Office, we want to when an user open file SharePoint lock this file for other user edit this file. And when user closes that file, unlock automatic.

 

It's possible?

 

Thanks an advanced

 

Pd.- I try HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\SupportLocking and Doesn't work.

2 Replies

  • Maggan_W's avatar
    Maggan_W
    Brass Contributor
    rmgarcia, you can create an Event Receiver in .NET: https://docs.microsoft.com/en-us/visualstudio/sharepoint/how-to-create-an-event-receiver?view=vs-2022
    • rmgarcia's avatar
      rmgarcia
      Copper Contributor
      Hi,
      thanks for your reply.

      Interesting, I find more information.

      Best regards

Resources