Share via


Records.LockItem method (SPListItem, String)

Locks down an item.

Namespace:  Microsoft.Office.RecordsManagement.RecordsRepository
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

Syntax

'Declaration
Public Shared Sub LockItem ( _
    itemToLock As SPListItem, _
    lockName As String _
)
'Usage
Dim itemToLock As SPListItem
Dim lockName As StringRecords.LockItem(itemToLock, lockName)
public static void LockItem(
    SPListItem itemToLock,
    string lockName
)

Parameters

Remarks

Designates the SPListItem object as read only, and checks out an associated SPFile object to the SHAREPOINT\SYSTEM account if such a file exists.

See also

Reference

Records class

Records members

LockItem overload

Microsoft.Office.RecordsManagement.RecordsRepository namespace