SPFile.LockedDate Property

Gets the creation date and time of a file lock.

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

Syntax

'Declaration
Public ReadOnly Property LockedDate As DateTime
    Get
'Usage
Dim instance As SPFile
Dim value As DateTime

value = instance.LockedDate
public DateTime LockedDate { get; }

Property Value

Type: System.DateTime
The date and time when the lock was created.

Remarks

Throws an SPFileLockException if no lock exists on the file.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace