Langue

ReportingService2010.SetItemLink(String, String) Méthode

Définition

Spécifie l’élément de catalogue utilisé pour la définition d’un article lié existant. Cette méthode s’applique au type d’objet Report .

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

Paramètres

ItemPath
String

L’URL entièrement qualifiée de l’élément lié, y compris le nom du fichier.

Link
String

Le nom complet du chemin du rapport contenant la définition du rapport.

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 UpdateProperties sur ItemPath ET (ReadProperties ET CreateLink) sur Link
Permissions requises en mode SharePoint Non pris en charge

Si l’élément spécifié dans le ItemPath paramètre contient déjà une définition d’élément, une exception SOAP est lancée avec un code rsWrongItemTyped’erreur .

Cette méthode modifie les propriétés ModifiedBy, ModifiedDate et Size de l’article.

S’applique à