SPFile.LockId Property

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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