Service2005.Delete Role(String) Method
从报表服务器数据库删除指定的角色。Deletes a specified role from the report server database.
public: void DeleteRole(System::String ^ Name);
public void DeleteRole (string Name);
member this.DeleteRole : string -> unit
Public Sub DeleteRole (Name As String)
角色的名称。The name of the role.
下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.
|SOAP 标头SOAP Headers||(In) BatchHeaderValue(In) BatchHeaderValue
(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
删除角色会将其与角色关联的所有策略中删除。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.
MyReportsRole 。You cannot delete the reserved role