ReportingService2010.GetModelItemPolicies(String, String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the policies associate with an item in the model hierarchy.
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()
Parameters
- Model
- String
The fully qualified URL of the model including the file name and .smdl file name extension.
- ModelItemID
- String
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
An array of Policy objects that describes the groups and their roles that are associated with the item in the catalog.
- Attributes
Remarks
The table below shows header and permissions information on this operation.
SOAP Header Usage | (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
Native Mode Required Permissions | ReadModelItemAuthorizationPolicies |
SharePoint Mode Required Permissions | <xref:Microsoft.SharePoint.SPBasePermissions.EnumeratePermissions> |