File.LockedByUser Property
Gets a value that returns the user that owns the current lock on the file.
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public ReadOnly Property LockedByUser As User
Get
'Usage
Dim instance As File
Dim value As User
value = instance.LockedByUser
[RemoteAttribute]
public User LockedByUser { get; }
Property Value
Type: Microsoft.SharePoint.Client.User
Returns User.
Exceptions
Exception | Condition |
---|---|
[System.IO.FileNotFoundException] | File cannot be found. Error code: -2147024894. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |
Remarks
It must return a null reference (Nothing in Visual Basic) if there is no lock. It must return a null reference (Nothing in Visual Basic) if there is no lock.