Export (0) Print
Expand All

SPFile.RefreshLock method

Renews an existing lock on the file.

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

'Declaration
PublicSubRefreshLock ( _
	lockIdAsString, _
	timeoutAsTimeSpan _
)
'Usage
DiminstanceAsSPFileDimlockIdAsStringDimtimeoutAsTimeSpan

instance.RefreshLock(lockId, timeout)

Parameters

lockId
Type: System.String

The identifier (ID) of the current lock.

timeout
Type: System.TimeSpan

Specifies the duration for which the lock will be refreshed.

ExceptionCondition
SPException

An error occurred while refreshing the lock.

Show:
© 2014 Microsoft