SP.File.lockedByUser Property
Applies to: SharePoint Foundation 2010
In this article
Property Value
Applies To
Remarks
Gets a value that returns the user that owns the current lock on the file.
var value = SP.File.get_lockedByUser();
Property Value
Type: SP.User
Applies To
Exceptions
- FileNotFoundException
File cannot be found. Error code: -2147024894.
- UnauthorizedAccessException
The current user has insufficient permissions. Error code: -2147024891.
Remarks
It must return null if there is no lock. It must return null if there is no lock.