ReportingService2005.GetPolicies(String, Boolean) Method

Definition

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

public:
 cli::array <ReportService2005::Policy ^> ^ GetPolicies(System::String ^ Item, [Runtime::InteropServices::Out] bool % InheritParent);
public ReportService2005.Policy[] GetPolicies (string Item, out bool InheritParent);
member this.GetPolicies : string * bool -> ReportService2005.Policy[]
Public Function GetPolicies (Item As String, ByRef InheritParent As Boolean) As Policy()

Parameters

Item
String

项的完整路径名称。The full path name of the item.

InheritParent
Boolean

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

Returns

Policy[]

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

Remarks

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

SOAP 标头SOAP Headers (Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
所需的权限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

Applies to