共用方式為


ReportingService2010.InheritParentSecurity(String) Method

Definition

Deletes the policies associated with an item. As a result, the item inherits the policies from its parent. This method applies to all item types.

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)

Parameters

ItemPath
String

The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

Attributes

Remarks

The table below shows header and permissions information on this operation.

SOAP Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions Depends on the item type:

- Folder: UpdateDeleteAuthorizationPolicy
- Report: UpdateDeleteAuthorizationPolicy
- Resource: UpdateDeleteAuthorizationPolicy
- DataSource: UpdateDeleteAuthorizationPolicy
- Model: UpdateDeleteAuthorizationPolicy
SharePoint Mode Required Permissions <xref:Microsoft.SharePoint.SPBasePermissions.ManagePermissions>

When you delete the policies that are associated with an item, the item inherits the policies that are associated with its parent. Policies that are deleted from an item are also deleted from child items that inherit those policies.

Applies to