ReportingService2005.InheritModelItemParentSecurity(String, String) Method

Definition

删除与模型层次结构中的项相关联的策略并导致模型项从其父项继承策略。Deletes the policies associated with an item in the model hierarchy and causes the item to inherit the policies from its parent.

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)

Parameters

Model
String

命名空间中的模型的完整名称。Full name of the model in the namespace.

ModelItemID
String

模型中项的 ID。The ID of the item in the model.

Remarks

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头SOAP Headers (In) BatchHeaderValue(In) BatchHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
所需的权限Required Permissions UpdateModelItemAuthorizationPolicies

从项目中删除的策略也会从继承这些策略的子项中删除。Policies that are deleted from an item are also deleted from child items that inherit those policies.

ModelItemID值是必需的。A ModelItemID value is required. 无法从模型根删除策略。Policies cannot be deleted from the model root. 如果尝试删除与模型根关联的策略,将导致 SOAP 异常,并返回错误代码 rsCannotDeleteRootPolicyAttempting to delete policies that are associated with the model root results in a SOAP exception with the error code rsCannotDeleteRootPolicy.

Applies to