Langue

ReportingService2010.DeleteItem(String) Méthode

Définition

Supprime un élément spécifié d’une base de données serveur de rapports ou d’une bibliothèque bibliothèque SharePoint. Cette méthode s’applique à tous les types d’objets.

public:
 void DeleteItem(System::String ^ ItemPath);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteItem", 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 DeleteItem(string ItemPath);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteItem", 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.DeleteItem : string -> unit
Public Sub DeleteItem (ItemPath As String)

Paramètres

ItemPath
String

L’URL entièrement qualifiée de l’élément incluant le nom du fichier et, en mode SharePoint, l’extension.

Attributs

Remarques

Le tableau ci-dessous présente les informations sur l’en-tête et les autorisations concernant cette opération.

Utilisation de l’en-tête SOAP (En) TrustedUserHeaderValue

(Dehors) ServerInfoHeaderValue
Mode natif : autorisations requises Cela dépend du type d’article.

- Folder: Delete
- Report, LinkedReport, DataSet: Delete
- Resource, Component: Delete
- DataSource: Delete
- Model: Delete

Si l’élément contient des éléments enfants, vous devez également avoir la permission correspondante Delete pour chaque élément enfant.
Permissions requises en mode SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.DeleteListItems>

La longueur du ItemPath paramètre ne peut pas dépasser 260 caractères ; sinon, une exception SOAP est lancée avec le code d’erreur rsItemLengthExceeded.

Le ItemPath paramètre ne peut pas être nul ou vide, ni contenir les caractères réservés suivants : : ? ; @ & = + $ , \ * > < | . ". Vous pouvez utiliser le caractère de barre oblique avant (/) pour séparer les éléments dans le nom complet du chemin, mais vous ne pouvez pas l’utiliser à la fin du nom du dossier.

Cette méthode supprime non seulement l’élément spécifié de la bibliothèque bibliothèque SharePoint du serveur de rapports, mais elle supprime aussi des éléments supplémentaires, tels que les abonnements, les plannings et les instantanés associés à l’élément du rapport.

Supprimer un élément d’une base de données serveur de rapports ou d’une bibliothèque SharePoint modifie les ModifiedBy propriétés et ModifiedDate de l’élément parent.

Tous les types d’éléments du catalogue peuvent être supprimés sauf un Site. Pour une liste de types d’objets, utilisez la ListItemTypes méthode.

S’applique à