Hold.RemoveHold Method (Int32, SPListItemCollection, String)
NOTE: This API is now obsolete.
Releases all the specified items from the specified hold.
Namespace: Microsoft.Office.RecordsManagement.Holds
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
<ObsoleteAttribute("Use RemoveHold(items, hold, comments")> _
Public Shared Function RemoveHold ( _
holdID As Integer, _
items As SPListItemCollection, _
comments As String _
) As Boolean
'Usage
Dim holdID As Integer
Dim items As SPListItemCollection
Dim comments As String
Dim returnValue As Boolean
returnValue = Hold.RemoveHold(holdID, _
items, comments)
[ObsoleteAttribute("Use RemoveHold(items, hold, comments")]
public static bool RemoveHold(
int holdID,
SPListItemCollection items,
string comments
)
Parameters
holdID
Type: System.Int32The integer that identifies the list item that represents the hold.
items
Type: Microsoft.SharePoint.SPListItemCollectionA collection of the list items from which you want to release the hold.
comments
Type: System.StringAny comment you want to write to the audit log when the hold is released for the specified documents.
Return Value
Type: System.Boolean
A Boolean value that represents whether the hold was successfully removed from the specified items.