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
訂閱識別碼。
- NewOwner
型別:System. . :: . .String
使用者識別碼,如授權延伸模組所定義。
備註
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
The user must be a member of the BUILTIN\Administrators group |
SharePoint Mode Required Permissions |
ManageWeb()()()() |
This method changes the Owner property of the subscription identified by SubscriptionID to the value of newOwner. The subscription will then execute in the security context of the new owner, and the User!UserID field in the report will display the value of newOwner.
[!附註]
This method can be used by a malicious user to try to gain additional data access rights. To help diagnose such incidences, whenever this method is invoked, the details of the operation are recorded in the trace log.