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. 此方法适用于Report项目类型。 This method applies to the Report item type.

public:
 void DeleteItemHistorySnapshot(System::String ^ ItemPath, System::String ^ HistoryID);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteItemHistorySnapshot", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[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)
参数
ItemPath
String String String

项的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名)。 The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

HistoryID
String String String

返回的项的历史记录快照的 ID,要删除、CreateItemHistorySnapshot(String, Warning[])方法。 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 标头使用情况SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions DeleteHistory
SharePoint 模式所需的权限SharePoint Mode Required Permissions DeleteVersions

长度ItemPath参数不能超过 260 个字符; 否则,将 SOAP 异常引发,错误代码rsItemLengthExceededThe length of the ItemPath parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

ItemPath参数不能为 null 或为空或包含下列保留的字符: : ? ; @ & = + $ , \ * > < | . "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.

使用ListItemHistory方法来检索HistoryID你想要删除的项历史记录快照的属性。Use the ListItemHistory method to retrieve the HistoryID property of the item history snapshot that you want to delete.

适用于