Hold.SetHold Method (Int32, SPListItem, String)
NOTE: This API is now obsolete.
Applies the specified hold to the specified document.
Namespace: Microsoft.Office.RecordsManagement.Holds
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
<ObsoleteAttribute("Use SetHold(item, hold, comments)")> _
Public Shared Sub SetHold ( _
holdID As Integer, _
item As SPListItem, _
comments As String _
)
'Usage
Dim holdID As Integer
Dim item As SPListItem
Dim comments As StringHold.SetHold(holdID, item, comments)
[ObsoleteAttribute("Use SetHold(item, hold, comments)")]
public static void SetHold(
int holdID,
SPListItem item,
string comments
)
Parameters
holdID
Type: System.Int32The integer that identifies the list item that represents the hold.
item
Type: Microsoft.SharePoint.SPListItemThe document to which you want the specified hold applied.
comments
Type: System.StringAny comment you want to write to the audit log when the hold is applied to the specified document.