ReportingService2010.DeleteItemHistorySnapshot(String, String) ReportingService2010.DeleteItemHistorySnapshot(String, String) ReportingService2010.DeleteItemHistorySnapshot(String, String) Method


Deletes an individual item history snapshot for a specified catalog item. If errors occur, the item history snapshot is not deleted. This method applies to the Report item type.

 void DeleteItemHistorySnapshot(System::String ^ ItemPath, System::String ^ HistoryID);
[System.Web.Services.Protocols.SoapDocumentMethod("", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="", ResponseNamespace="", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void DeleteItemHistorySnapshot (string ItemPath, string HistoryID);
Public Sub DeleteItemHistorySnapshot (ItemPath As String, HistoryID As String)
String String String

The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

String String String

The ID of the item history snapshot to be deleted, returned by the CreateItemHistorySnapshot(String, Warning[]) method.


The table below shows header and permissions information on this operation.

SOAP Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions DeleteHistory
SharePoint Mode Required Permissions <xref:Microsoft.SharePoint.SPBasePermissions.DeleteVersions>

The length of the ItemPath parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

The ItemPath parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.

Use the ListItemHistory method to retrieve the HistoryID property of the item history snapshot that you want to delete.

Applies to