Share via


ReportingService2010.ChangeSubscriptionOwner メソッド

サブスクリプションの所有者を変更します。

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

構文

'宣言
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ChangeSubscriptionOwner", 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)> _
Public Sub ChangeSubscriptionOwner ( _
    SubscriptionID As String, _
    NewOwner As String _
)
'使用
Dim instance As ReportingService2010 
Dim SubscriptionID As String 
Dim NewOwner As String

instance.ChangeSubscriptionOwner(SubscriptionID, _
    NewOwner)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ChangeSubscriptionOwner", 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)]
public void ChangeSubscriptionOwner(
    string SubscriptionID,
    string NewOwner
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ChangeSubscriptionOwner", 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)]
public:
void ChangeSubscriptionOwner(
    String^ SubscriptionID, 
    String^ NewOwner
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ChangeSubscriptionOwner", 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)>]
member ChangeSubscriptionOwner : 
        SubscriptionID:string * 
        NewOwner:string -> unit
public function ChangeSubscriptionOwner(
    SubscriptionID : String, 
    NewOwner : String
)

パラメーター

  • SubscriptionID
    型: System.String
    サブスクリプション ID です。
  • NewOwner
    型: System.String
    承認拡張機能により定義されたユーザー ID です。

説明

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

SOAP ヘッダーの使用方法

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

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

ユーザーは、BUILTIN\Administrators グループのメンバーである必要があります。

SharePoint モードで必要な権限

ManageWeb

このメソッドで、SubscriptionID によって識別されるサブスクリプションの Owner プロパティが newOwner の値に変更されます。 サブスクリプションは新しい所有者のセキュリティ コンテキストで実行され、レポート内の User!UserID フィールドに newOwner の値が表示されます。

注意

このメソッドは、追加のデータ アクセス権限を取得しようとする悪意のあるユーザーによって使用される可能性があります。 そのような問題を診断できるように、このメソッドが呼び出されるたびに操作の詳細をトレース ログに記録することをお勧めします。

関連項目

参照

ReportingService2010 クラス

ReportService2010 名前空間