ReportingService2005.SetModelItemPolicies(String, String, Policy[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The ID of the item in the model for which to set permissions.
- Policies
- Policy[]
An array of Policy
objects.
Remarks
The table below shows header and permissions information on this operation.
SOAP Headers | (In) BatchHeaderValue (Out) ServerInfoHeaderValue |
Required Permissions | UpdateModelItemAuthorizationPolicies |
When SetModelItemPolicies is called, the list of policies on the model item is replaced by the list specified in the method call.
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.
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.