ReportingService2010.GetPolicies(String, Boolean) ReportingService2010.GetPolicies(String, Boolean) ReportingService2010.GetPolicies(String, Boolean) Method

定义

返回与报表服务器数据库或 SharePoint 库中特定项相关联的策略。 Returns the policies that are associated with a particular item in a report server database or SharePoint library.

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);
Public Function GetPolicies (ItemPath As String, ByRef InheritParent As Boolean) 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.

InheritParent
Boolean Boolean Boolean

ABoolean指示项是否从其父级继承策略表达式。 A Boolean expression that indicates whether the item inherits policies from its parent.

返回
Policy[]

数组Policy包含用户和角色与项关联的对象。 An array of Policy objects that contains the users and roles associated with the item.

注解

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

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

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

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

适用于