ReportingService2010.DeleteSubscription(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从报表服务器数据库删除订阅。
public:
void DeleteSubscription(System::String ^ SubscriptionID);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteSubscription", 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("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public void DeleteSubscription (string SubscriptionID);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteSubscription", 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("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.DeleteSubscription : string -> unit
Public Sub DeleteSubscription (SubscriptionID As String)
参数
- SubscriptionID
- String
订阅的 ID,该 ID 由 CreateSubscription(String, ExtensionSettings, String, String, String, ParameterValue[]) 方法返回。
- 属性
注解
下表显示了有关此操作的标头和权限信息。
SOAP 标头用法 | (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
本机模式所需权限 | DeleteSubscription 或 DeleteAnySubscription |
SharePoint 模式所需权限 | <xref:Microsoft.SharePoint.SPBasePermissions.ManageAlerts> 或者 (<xref:Microsoft.SharePoint.SPBasePermissions.CreateAlerts> 用户是订阅所有者,订阅是计划的订阅) |
若要删除 参数中指定的 SubscriptionID
订阅,用户必须对与订阅关联的报表具有“删除订阅”权限。