Share via


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

  • comments
    Type: System.String

    Comments 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).

See Also

Reference

Hold Class

Hold Members

RemoveHold Overload

Microsoft.Office.RecordsManagement.Holds Namespace