_Document.LockServerFile method

Office 2013 and later

Locks the file on the server preventing anyone else from editing it.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

void LockServerFile()

This method applies only to documents stored on a server running Microsoft Office SharePoint Server 2007.

Show: