ReportingService2010.SetRoleProperties(String, String, String[]) ReportingService2010.SetRoleProperties(String, String, String[]) ReportingService2010.SetRoleProperties(String, String, String[]) Method

定义

设置角色属性,并将任务的集合与指定的角色关联。 Sets role properties and associates a collection of tasks with a specified role. 此方法仅适用于本机模式。 This method only applies to native mode.

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);
Public Sub SetRoleProperties (Name As String, Description As String, TaskIDs As String())
参数
Name
String String String

要设置其属性的角色的名称。 The name of the role for which to set properties.

Description
String String String

(可选)角色的说明。 Optional.A description of the role.

TaskIDs
String[]

一个string对象的数组,该数组表示要为角色设置的任务。 An array of string objects that represent the tasks to set for the role.

注解

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头使用情况SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions UpdateRoleProperties (系统)UpdateRoleProperties (System)
SharePoint 模式所需的权限SharePoint Mode Required Permissions 不支持Not supported

此方法将引发OperationNotSupportedSharePointMode异常时在 SharePoint 模式下调用。This method throws an OperationNotSupportedSharePointMode exception when invoked in SharePoint mode.

当使用此方法来更改角色属性时,则会影响组、 用户和分配给角色的策略。When you use this method to change role properties, groups, users, and policies that are assigned to the role are affected.

适用于