Aracılığıyla paylaş


ReportingService2010.ChangeSubscriptionOwner Yöntemi

Bir abonelik sahibini değiştirir.

Ad Alanı:  ReportService2010
Derleme:  ReportService2010 (ReportService2010 içinde.dll)

Sözdizimi

'Bildirim
<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 _
)
'Kullanım
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
)

Parametreler

  • NewOwner
    Tür: System.String
    Yetkilendirme uzantısı tarafından tanımlanan kullanıcı kimliği.

Açıklamalar

Aşağıdaki tablo üstbilgi ve izinler bu işlemi gösterir.

soap üstbilgisi kullanımı

(De)TrustedUserHeaderValue

(Giden)ServerInfoHeaderValue

Yerel mod gerekli izinleri

Kullanıcının BUILTIN\Administrators grubunun üye olması gerekir

SharePoint modu gerekli izinleri

ManageWeb()

Bu yöntem değiştirir Owner özellik ile tanımlanan abonelik SubscriptionID değerine newOwner.Sonra abonelik olur yürütmek yeni sahibinin güvenlik bağlamında ve kullanıcı!Kullanıcı kimliği rapordaki alan değerini görüntüler newOwner.

Not

Bu yöntem, ek veri erişim hakkı kazanmak için kötü niyetli bir kullanıcı tarafından kullanılabilir.Bu yöntem çağrılır her tür incidences tanılamak üzere işlemin ayrıntılarını izleme günlüğüne kaydedilir.