SPFile.ReleaseLock Method

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public void ReleaseLock(
	string lockId
)

Parameters

lockId
Type: System.String

The ID of the existing lock on the file.

ExceptionCondition
SPException

An error occurred while releasing the lock.

Show: