ReportingService2005.SetModelItemPolicies(String, String, Policy[]) Method
Definition
设置模型层次结构中的项的安全策略。Sets security policies on an item in the model hierarchy.
public:
void SetModelItemPolicies(System::String ^ Model, System::String ^ ModelItemID, cli::array <ReportService2005::Policy ^> ^ Policies);
public void SetModelItemPolicies (string Model, string ModelItemID, ReportService2005.Policy[] Policies);
member this.SetModelItemPolicies : string * string * ReportService2005.Policy[] -> unit
Public Sub SetModelItemPolicies (Model As String, ModelItemID As String, Policies As Policy())
Parameters
- Model
- String
模型的完整名称。The full name of the model.
- ModelItemID
- String
要为其设置权限的模型中项的 ID。The ID of the item in the model for which to set permissions.
- Policies
- Policy[]
一个 Policy
对象数组。An array of Policy
objects.
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 |
SetModelItemPolicies调用时,模型项上的策略列表将替换为方法调用中指定的列表。When SetModelItemPolicies is called, the list of policies on the model item is replaced by the list specified in the method call.
如果没有为模型项分配至少一个策略,则将 SetModelItemPolicies 返回错误 rsModelRootPolicyRequired
。If there is not at least one policy assigned to the model item, SetModelItemPolicies returns the error rsModelRootPolicyRequired
.
新提供的策略可能传播到包含的对象。The newly supplied policies may propagate to contained objects.
如果在调用之前从父级继承模型项的策略 SetModelItemPolicies ,则在成功完成后,继承将中断 SetModelItemPolicies 。If the policies for the model item are inherited from the parent before the call to SetModelItemPolicies, the inheritance is broken upon successful completion of SetModelItemPolicies.