Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the user who has locked the file.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.Custom, Value := "MUST return null if there is no lock.", _
FixedId := "1")> _
Public ReadOnly Property LockedByUser As SPUser
Get
'Usage
Dim instance As SPFile
Dim value As SPUser
value = instance.LockedByUser
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.Custom, Value = "MUST return null if there is no lock.",
FixedId = "1")]
public SPUser LockedByUser { get; }
Property Value
Type: Microsoft.SharePoint.SPUser
The user who owns the lock on the file. If the file is not locked, the value is a null reference (Nothing in Visual Basic).