Langue

ReportingService2010.SetRoleProperties(String, String, String[]) Méthode

Définition

Définit les propriétés du rôle et associe un ensemble de tâches à un rôle spécifié. Cette méthode ne s’applique qu’au mode natif.

public:
 void SetRoleProperties(System::String ^ Name, System::String ^ Description, cli::array <System::String ^> ^ TaskIDs);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetRoleProperties", 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 void SetRoleProperties(string Name, string Description, string[] TaskIDs);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetRoleProperties", 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.SetRoleProperties : string * string * string[] -> unit
Public Sub SetRoleProperties (Name As String, Description As String, TaskIDs As String())

Paramètres

Name
String

Le nom du rôle pour lequel définir les propriétés.

Description
String

Optionnel. Une description du poste.

TaskIDs
String[]

Un tableau d’objets string représentant les tâches à définir pour le rôle.

Attributs

Remarques

Le tableau ci-dessous présente les informations sur l’en-tête et les autorisations concernant cette opération.

Utilisation de l’en-tête SOAP (En) TrustedUserHeaderValue

(Dehors) ServerInfoHeaderValue
Mode natif : autorisations requises UpdateRoleProperties (Système)
Permissions requises en mode SharePoint Non pris en charge

Cette méthode lance une OperationNotSupportedSharePointMode exception lorsqu’elle est invoquée en mode SharePoint.

Lorsque vous utilisez cette méthode pour modifier les propriétés du rôle, les groupes, utilisateurs et politiques assignés au rôle sont affectés.

S’applique à