SPFile.LockId property

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

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

Syntax

'Declaration
Public ReadOnly Property LockId As String
    Get
'Usage
Dim instance As SPFile
Dim value As String

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

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace