次の方法で共有


SPFile.ReleaseLock method

Releases an existing lock that is specified by its identifier (ID).

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

Syntax

'Declaration
Public Sub ReleaseLock ( _
    lockId As String _
)
'Usage
Dim instance As SPFile
Dim lockId As String

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

Parameters

  • lockId
    Type: System.String

    The ID of the existing lock on the file.

Exceptions

Exception Condition
SPException

An error occurred while releasing the lock.

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace

RefreshLock(String, TimeSpan)