ReportingService2010.InheritParentSecurity(String) 方法

定义

删除与某项关联的策略。 其结果是,该项从其父项继承策略。 此方法适用于所有项类型。

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

参数

ItemPath
String

项的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名)。

属性

注解

下表显示了有关此操作的标头和权限信息。

SOAP 标头用法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
本机模式所需的权限 取决于项类型:

- Folder: UpdateDeleteAuthorizationPolicy
- Report: UpdateDeleteAuthorizationPolicy
- Resource: UpdateDeleteAuthorizationPolicy
- DataSource: UpdateDeleteAuthorizationPolicy
- Model: UpdateDeleteAuthorizationPolicy
SharePoint 模式所需权限 <xref:Microsoft.SharePoint.SPBasePermissions.ManagePermissions>

删除与项关联的策略时,该项将继承与其父项关联的策略。 从项中删除的策略也会从继承这些策略的子项中删除。

适用于