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
hold
Type: Microsoft.SharePoint.SPListItemThe hold.
comments
Type: System.StringComments 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.