語言

ReportingService2006.InheritModelItemParentSecurity(String, String) 方法

定義

刪除模型階層中與項目相關的政策,並使該項目繼承父項目的政策。

public:
 void InheritModelItemParentSecurity(System::String ^ Model, System::String ^ ModelItemID);
public void InheritModelItemParentSecurity(string Model, string ModelItemID);
member this.InheritModelItemParentSecurity : string * string -> unit
Public Sub InheritModelItemParentSecurity (Model As String, ModelItemID As String)

參數

Model
String

模型的完整 URL 包含檔名與 .smdl 檔名副檔名。

ModelItemID
String

模型中物品的 ID。

備註

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

SOAP 標頭 (在) TrustedUserHeaderValue

(出局) ServerInfoHeaderValue
必要權限 <xref:Microsoft.SharePoint.SPBasePermissions.ManagePermissions>

從項目中刪除的政策,也會從繼承該政策的子項目中被刪除。

需要一個 ModelItemID 數值。 政策無法從模型根刪除。 嘗試刪除與模型根相關聯的政策時,會產生帶有錯誤代碼 rsCannotDeleteRootPolicy的 SOAP 例外。

適用於