共用方式為


SPFile.ReleaseLock method

釋放由其識別項 (ID) 所指定的現有鎖定。

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

Syntax

'宣告
Public Sub ReleaseLock ( _
    lockId As String _
)
'用途
Dim instance As SPFile
Dim lockId As String

instance.ReleaseLock(lockId)
public void ReleaseLock(
    string lockId
)

參數

  • lockId
    Type: System.String

    在檔案上現存的鎖定的識別碼。

Exceptions

Exception Condition
SPException

釋放鎖定時發生錯誤。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace

RefreshLock(String, TimeSpan)