次の方法で共有


ReportingService2010.SetItemLink メソッド

既存のリンク アイテムのアイテム定義で使用するカタログ アイテムを指定します。 このメソッドは、アイテムの種類 Report に適用されます。

名前空間:  ReportService2010
アセンブリ:  ReportService2010 (ReportService2010.dll)

構文

'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemLink", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Sub SetItemLink ( _
    ItemPath As String, _
    Link As String _
)
'使用
Dim instance As ReportingService2010 
Dim ItemPath As String 
Dim Link As String

instance.SetItemLink(ItemPath, Link)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemLink", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public void SetItemLink(
    string ItemPath,
    string Link
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemLink", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
void SetItemLink(
    String^ ItemPath, 
    String^ Link
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemLink", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member SetItemLink : 
        ItemPath:string * 
        Link:string -> unit
public function SetItemLink(
    ItemPath : String, 
    Link : String
)

パラメーター

  • ItemPath
    型: System.String
    ファイル名を含む、リンク アイテムの完全修飾 URL です。
  • Link
    型: System.String
    レポート定義を含むレポートの完全なパス名です。

説明

次の表に、この操作に関連するヘッダーおよび権限の情報を示します。

SOAP ヘッダーの使用方法

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

ネイティブ モードで必要な権限

ItemPath に対する UpdateProperties、および Link に対する (ReadProperties および CreateLink)

SharePoint モードで必要な権限

サポートされていません。

ItemPath パラメーターで指定したアイテムに、既にアイテム定義が含まれる場合、エラー コード rsWrongItemType の SOAP 例外がスローされます。

このメソッドを使用すると、アイテムの ModifiedBy プロパティ、ModifiedDate プロパティ、および Size プロパティが変更されます。

関連項目

参照

ReportingService2010 クラス

ReportService2010 名前空間