ReportingService2010.SetPolicies(String, Policy[]) ReportingService2010.SetPolicies(String, Policy[]) ReportingService2010.SetPolicies(String, Policy[]) Method

定义

设置与指定的项关联的策略。 Sets the policies that are associated with a specified item.

public:
 void SetPolicies(System::String ^ ItemPath, cli::array <ReportService2010::Policy ^> ^ Policies);
[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);
Public Sub SetPolicies (ItemPath As String, Policies As Policy())
参数
ItemPath
String String String

项的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名)。 The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

Policies
Policy[]

Policy 对象的数组,它包含要为指定项设置的组和角色。 An array of Policy objects that contains the groups and roles to set for the specified item.

注解

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

SOAP 标头使用情况SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions 取决于项目类型:Depends on the item type:

- Folder: UpdateDeleteAuthorizationPolicy- Folder: UpdateDeleteAuthorizationPolicy
- Report: UpdateDeleteAuthorizationPolicy- Report: UpdateDeleteAuthorizationPolicy
- Resource: UpdateDeleteAuthorizationPolicy- Resource: UpdateDeleteAuthorizationPolicy
- DataSource: UpdateDeleteAuthorizationPolicy- DataSource: UpdateDeleteAuthorizationPolicy
- Model: UpdateDeleteAuthorizationPolicy- Model: UpdateDeleteAuthorizationPolicy
SharePoint 模式所需的权限SharePoint Mode Required Permissions ManagePermissions

适用于