ReportingService2005.GetModelItemPolicies(String, String, Boolean) Method

Definition

检索与模型层次结构中的项相关联的策略。Retrieves the policies associate with an item in the model hierarchy.

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

Parameters

Model
String

模型的完整名称。The full name of the model.

ModelItemID
String

模型中项的 ID。The ID of the item in the model. 如果忽略该参数,则返回模型根的权限。If omitted, the permissions for the model root are returned.

InheritParent
Boolean

指示策略是否是从该项的父项继承的。Indicates whether the policies are inherited from the item's parent.

Returns

Policy[]

Policy 对象的数组,它描述与目录中的项关联的用户组及其角色。An array of Policy objects that describes the groups and their roles that are associated with the item in the catalog.

Remarks

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

SOAP 标头SOAP Headers (Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
所需的权限Required Permissions ReadModelItemAuthorizationPolicies

在创建策略后,安全数据库中的组和用户可以重命名。Groups and users in the security database may be renamed after a policy is created. 从此 Web 服务方法返回策略时,Report Server 会在返回策略之前将 Sid 解析为正确的组/用户名。When the policies are returned from this Web service method, the report server resolves the SIDs to the correct group/user names before returning polices.

Applies to