Hold.ReleaseHold Hold.ReleaseHold Hold.ReleaseHold Method

Definition

Overloads

ReleaseHold(SPListItem, String) ReleaseHold(SPListItem, String) ReleaseHold(SPListItem, String)

Releases all items on the specified hold.

ReleaseHold(Int32, SPWeb, String) ReleaseHold(Int32, SPWeb, String) ReleaseHold(Int32, SPWeb, String)

Releases any documents on the specified SharePoint site from the specified hold.

ReleaseHold(SPListItem, String) ReleaseHold(SPListItem, String) ReleaseHold(SPListItem, String)

Releases all items on the specified hold.

public:
 static void ReleaseHold(Microsoft::SharePoint::SPListItem ^ hold, System::String ^ comments);
public static void ReleaseHold (Microsoft.SharePoint.SPListItem hold, string comments);
Public Shared Sub ReleaseHold (hold As SPListItem, comments As String)
Parameters
comments
String String String

Comments about why the item was released from hold.

Exceptions

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

Remarks

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

ReleaseHold(Int32, SPWeb, String) ReleaseHold(Int32, SPWeb, String) ReleaseHold(Int32, SPWeb, String)

Releases any documents on the specified SharePoint site from the specified hold.

public:
 static void ReleaseHold(int holdID, Microsoft::SharePoint::SPWeb ^ web, System::String ^ comments);
public static void ReleaseHold (int holdID, Microsoft.SharePoint.SPWeb web, string comments);
Public Shared Sub ReleaseHold (holdID As Integer, web As SPWeb, comments As String)
Parameters
holdID
Int32 Int32 Int32

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

web
SPWeb SPWeb SPWeb

The site on which the documents you want released from this hold are located.

comments
String String String

Any comment you want to write to the audit log when the hold is released.

Applies to