語言

ReportingService2010.ChangeSubscriptionOwner(String, String) 方法

定義

更改訂閱的擁有者。

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

參數

SubscriptionID
String

訂用帳戶標識碼。

NewOwner
String

使用者 ID,依授權擴充功能定義。

屬性

備註

下表顯示此操作的標頭與權限資訊。

SOAP 標頭的使用 (在) TrustedUserHeaderValue

(出局) ServerInfoHeaderValue
原生模式所需權限 使用者必須是 BUILTIN\Administrators 群組的成員
SharePoint 模式 必要權限 <xref:Microsoft.SharePoint.SPBasePermissions.ManageWeb>

此方法將 Owner 所識別 SubscriptionID 的訂閱性質改變為 的 newOwner值。 訂閱隨後會在新擁有者的安全性情境中執行, User!UserID 報告中的欄位會顯示 的 newOwner值。

Note

此方法可被惡意使用者用來試圖取得額外的資料存取權限。 為了協助診斷此類事件,每當使用此方法時,操作細節會記錄在追蹤日誌中。

適用於