共用方式為


SPFile.LockedDate property

取得建立日期和時間的檔案鎖定。

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

Syntax

'宣告
Public ReadOnly Property LockedDate As DateTime
    Get
'用途
Dim instance As SPFile
Dim value As DateTime

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

Property value

Type: System.DateTime
日期和建立鎖定的時間。

備註

如果沒有鎖定的檔案上存在,則會擲回SPFileLockException

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace