다음을 통해 공유


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.Int32

    The integer that identifies the list item that represents the hold.

  • comments
    Type: System.String

    Any 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.

See Also

Reference

Hold Class

Hold Members

RemoveHold Overload

Microsoft.Office.RecordsManagement.Holds Namespace