Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the items on the specified hold.
Namespace: Microsoft.Office.RecordsManagement.Holds
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Shared Function SetHold ( _
items As SPListItemCollection, _
hold As SPListItem, _
comments As String _
) As Boolean
'Usage
Dim items As SPListItemCollection
Dim hold As SPListItem
Dim comments As String
Dim returnValue As Boolean
returnValue = Hold.SetHold(items, _
hold, comments)
public static bool SetHold(
SPListItemCollection items,
SPListItem hold,
string comments
)
Parameters
items
Type: Microsoft.SharePoint.SPListItemCollectionThe items.
hold
Type: Microsoft.SharePoint.SPListItemThe hold.
comments
Type: System.StringComments about why the item was put on hold.
Return Value
Type: System.Boolean
Whether any item in the collection failed to be added to the hold.