ReportingService2010.SetItemLink(String, String) Méthode

Définition

Spécifie l'élément de catalogue utilisé pour la définition d'élément d'un élément lié existant. Cette méthode s'applique au type d'élément de 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

URL complète de l'élément lié, y compris le nom de fichier.

Link
String

Nom du chemin d'accès complet du rapport qui contient la définition de rapport.

Attributs

Remarques

Le tableau suivant présente les informations relatives aux en-têtes et aux autorisations sur cette opération.

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

(Out) ServerInfoHeaderValue
Autorisations requises en mode natif UpdateProperties sur ItemPath AND (ReadProperties AND CreateLink) sur Link
Mode SharePoint Autorisations requises Non prise 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 levée avec le code rsWrongItemTyped’erreur .

L’utilisation de cette méthode modifie les propriétés ModifiedBy, ModifiedDate et Size de l’élément.

S’applique à