ReportingService2010.DeleteItemHistorySnapshot(String, String) Método

Definición

Elimina una instantánea del historial de elementos individual para un elemento de catálogo especificado. Si se producen errores, no se eliminará la instantánea del historial de elementos. Este método se aplica al tipo de elemento Report.

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);
[<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)>]
member this.DeleteItemHistorySnapshot : string * string -> unit
Public Sub DeleteItemHistorySnapshot (ItemPath As String, HistoryID As String)

Parámetros

ItemPath
String

Dirección URL completa del elemento, incluidos el nombre de archivo y la extensión, en modo de SharePoint.

HistoryID
String

El identificador de la instantánea del historial de elementos que se van a eliminar, que devuelve el método CreateItemHistorySnapshot(String, Warning[]).

Atributos

Comentarios

En la siguiente tabla se muestra la información de encabezado y de permisos de esta operación.

Uso del encabezado SOAP (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Permisos necesarios en modo nativo DeleteHistory
Permisos necesarios en modo de SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.DeleteVersions>

La longitud del ItemPath parámetro no puede superar los 260 caracteres; de lo contrario, se produce una excepción SOAP con el código de error rsItemLengthExceeded.

El ItemPath parámetro no puede ser nulo ni estar vacío ni contener los siguientes caracteres reservados: : ? ; @ & = + $ , \ * > < | . ". Puede usar el carácter de barra diagonal (/) para separar los elementos del nombre de ruta de acceso completo de la carpeta, pero no puede usarlo al final del nombre de la carpeta.

Use el ListItemHistory método para recuperar la HistoryID propiedad de la instantánea del historial de elementos que desea eliminar.

Se aplica a