File.LockedByUser property

Gets a value that returns the user that owns the current lock on the file.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public ReadOnly Property LockedByUser As User
    Get
'Usage
Dim instance As File
Dim value As User

value = instance.LockedByUser
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.

See also

Reference

File class

File members

Microsoft.SharePoint.Client namespace