SPFile.ReleaseLock 方法

释放由其标识符 (ID) 指定的现有锁定。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub ReleaseLock ( _
    lockId As String _
)
用法
Dim instance As SPFile
Dim lockId As String

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

参数

异常

异常 条件
SPException

释放锁时出错。

另请参阅

引用

SPFile 类

SPFile 成员

Microsoft.SharePoint 命名空间

RefreshLock(String, TimeSpan)