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 | 釋放鎖定時發生錯誤。 |