Hold.RemoveHold Method (SPListItemCollection, SPListItem, String)
Removes the specified items from the specified hold.
Namespace: Microsoft.Office.RecordsManagement.Holds
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Shared Function RemoveHold ( _
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.RemoveHold(items, _
hold, comments)
public static bool RemoveHold(
SPListItemCollection items,
SPListItem hold,
string comments
)
Parameters
items
Type: Microsoft.SharePoint.SPListItemCollectionThe hold.
hold
Type: Microsoft.SharePoint.SPListItemThe items.
comments
Type: System.StringComments about why the item was released from hold.
Return Value
Type: System.Boolean
Whether any item in the collection failed to be released from the hold.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Items or a hold is a null reference (Nothing in Visual Basic). |