ReportingService2010.GetModelItemPolicies(String, String, Boolean) 方法

定义

检索与模型层次结构中的项相关联的策略。

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

参数

Model
String

模型的完全限定 URL,其中包括文件名和 .smdl 文件扩展名。

ModelItemID
String

模型中项的 ID。 如果忽略该参数,则返回模型根的权限。

InheritParent
Boolean

指示策略是否是从该项的父项继承的。

返回

Policy[]

Policy 对象的数组,它描述与目录中的项关联的用户组及其角色。

属性

注解

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

SOAP 标头用法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
本机模式所需权限 ReadModelItemAuthorizationPolicies
SharePoint 模式所需权限 <xref:Microsoft.SharePoint.SPBasePermissions.EnumeratePermissions>

适用于