共用方式為


SPFile.LockId property

取得檔案的目前鎖定的識別碼 (ID)。

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

Syntax

'宣告
Public ReadOnly Property LockId As String
    Get
'用途
Dim instance As SPFile
Dim value As String

value = instance.LockId
public string LockId { get; }

Property value

Type: System.String
字串,識別檔案的鎖定。如果檔案沒有被鎖定,則值會是 null 參考 (在 Visual Basic 的Nothing )。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace