Share via


Hold.ReleaseHold Method (SPListItem, String)

Releases all items on the specified hold.

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

Syntax

'Declaration
Public Shared Sub ReleaseHold ( _
    hold As SPListItem, _
    comments As String _
)
'Usage
Dim hold As SPListItem
Dim comments As StringHold.ReleaseHold(hold, comments)
public static void ReleaseHold(
    SPListItem hold,
    string comments
)

Parameters

  • comments
    Type: System.String

    Comments about why the item was released from hold.

Exceptions

Exception Condition
ArgumentNullException

Hold is a null reference (Nothing in Visual Basic).

Remarks

Items on this specified hold are marked forasynchronous release from the specified hold.

See Also

Reference

Hold Class

Hold Members

ReleaseHold Overload

Microsoft.Office.RecordsManagement.Holds Namespace