ReportingService2010.SetPolicies(String, Policy[]) Method

Definition

Sets the policies that are associated with a specified item.

C#
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetPolicies", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public void SetPolicies(string ItemPath, ReportService2010.Policy[] Policies);

Parameters

ItemPath
String

The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

Policies
Policy[]

An array of Policy objects that contains the groups and roles to set for the specified item.

Attributes

Remarks

The table below shows header and permissions information on this operation.

SOAP Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions Depends on the item type:

- Folder: UpdateDeleteAuthorizationPolicy
- Report: UpdateDeleteAuthorizationPolicy
- Resource: UpdateDeleteAuthorizationPolicy
- DataSource: UpdateDeleteAuthorizationPolicy
- Model: UpdateDeleteAuthorizationPolicy
SharePoint Mode Required Permissions <xref:Microsoft.SharePoint.SPBasePermissions.ManagePermissions>

Applies to

Ürün Sürümler
SQL Server .NET SDK 2016