ReportingService2010.GetPolicies(String, Boolean) 方法

定义

返回与报表服务器数据库或 SharePoint 库中特定项相关联的策略。

public:
 cli::array <ReportService2010::Policy ^> ^ GetPolicies(System::String ^ ItemPath, [Runtime::InteropServices::Out] bool % InheritParent);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetPolicies", 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("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public ReportService2010.Policy[] GetPolicies (string ItemPath, out bool InheritParent);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetPolicies", 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("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.GetPolicies : string * bool -> ReportService2010.Policy[]
Public Function GetPolicies (ItemPath As String, ByRef InheritParent As Boolean) As Policy()

参数

ItemPath
String

项的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名)。

InheritParent
Boolean

一个指示项是否从其父项继承策略的Boolean表达式。

返回

Policy[]

Policy 对象的数组,它包含与项关联的用户和角色。

属性

注解

下表显示了有关此操作的标头和权限信息。

SOAP 标头用法 ) 中的 (TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
本机模式所需权限 取决于项类型:

- Folder: ReadAuthorizationPolicy
- Report: ReadAuthorizationPolicy
- Resource: ReadAuthorizationPolicy
- DataSource: ReadAuthorizationPolicy
- Model: ReadAuthorizationPolicy
SharePoint 模式所需权限 <xref:Microsoft.SharePoint.SPBasePermissions.EnumeratePermissions>

适用于