語言

ReportingService2005.InheritParentSecurity(String) 方法

定義

刪除與項目相關的政策。 因此,該項目會繼承其父項目的政策。

public:
 void InheritParentSecurity(System::String ^ Item);
public void InheritParentSecurity(string Item);
member this.InheritParentSecurity : string -> unit
Public Sub InheritParentSecurity (Item As String)

參數

Item
String

物品的完整路徑名稱。

備註

下表顯示此操作的標頭與權限資訊。

SOAP 標頭 (在) BatchHeaderValue

(出局) ServerInfoHeaderValue
必要權限 這取決於物品類型:

- Folder: UpdateDeleteAuthorizationPolicy
- Report: UpdateDeleteAuthorizationPolicy
- Resource: UpdateDeleteAuthorizationPolicy
- DataSource: UpdateDeleteAuthorizationPolicy
- Model: UpdateDeleteAuthorizationPolicy

當你刪除與某個項目相關的政策時,該項目會繼承與其父項目相關的政策。 從項目中刪除的政策,也會從繼承該政策的子項目中被刪除。

政策無法從報告伺服器資料庫的根目錄中刪除。 嘗試刪除與報告伺服器資料庫根資料夾相關的政策時,會觸發帶有錯誤代碼 rsCannotDeleteRootPolicy的 SOAP 例外。

適用於