Deletes a specified role from the report server database. This method only applies to native mode.
Assembly: ReportService2010 (in ReportService2010.dll)
'Declaration <SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteRole", RequestNamespace := "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _ ResponseNamespace := "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _ Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _ <SoapHeaderAttribute("TrustedUserHeaderValue")> _ <SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _ Public Sub DeleteRole ( _ Name As String _ ) 'Usage Dim instance As ReportingService2010 Dim Name As String instance.DeleteRole(Name)
- Type: System.String
The name of the role.
The table below shows header and permissions information on this operation.
SOAP Header Usage
Native Mode Required Permissions
SharePoint Mode Required Permissions
This method throws an OperationNotSupportedSharePointMode exception when invoked in SharePont mode.
Deleting a role removes it from all policies with which the role is associated. If the role that is deleted is the only role that is associated with a particular policy, the policy is also deleted and any item associated with the policy inherits new policies from its parent.
You cannot delete the reserved role MyReportsRole.