SPFile.LockExpires property

Gets the expiration date and time of a file lock.

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

Syntax

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

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

Property value

Type: System.DateTime
The date and time when the lock will expire.

Remarks

Throws an SPFileLockException if no lock exists on the file.

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace