ReportingService2010.GetPolicies(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.
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);
[<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)>]
member this.GetPolicies : string * bool -> ReportService2010.Policy[]
Public Function GetPolicies (ItemPath As String, ByRef InheritParent As Boolean) As Policy()
Parameters
- ItemPath
- String
The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.
- InheritParent
- Boolean
A Boolean
expression that indicates whether the item inherits policies from its parent.
Returns
An array of Policy objects that contains the users and roles associated with the item.
- Attributes
Remarks
The table below shows header and permissions information on this operation.
SOAP Header Usage | (In)TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
Native Mode Required Permissions | Depends on the item type: - Folder : ReadAuthorizationPolicy- Report : ReadAuthorizationPolicy- Resource : ReadAuthorizationPolicy- DataSource : ReadAuthorizationPolicy- Model : ReadAuthorizationPolicy |
SharePoint Mode Required Permissions | <xref:Microsoft.SharePoint.SPBasePermissions.EnumeratePermissions> |