SPFile.LockId property

Gets the identifier (ID) of the current lock on the file.

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

public string LockId { get; }

Property value

Type: System.String
A string that identifies the lock on the file. If the file is not locked, the value is a null reference (Nothing in Visual Basic).
Show: