ReportingService2005.GetSystemPermissions Method

Definition

检索当前用户的系统权限。Retrieves the system permissions of the current user.

public:
 cli::array <System::String ^> ^ GetSystemPermissions();
public string[] GetSystemPermissions ();
member this.GetSystemPermissions : unit -> string[]
Public Function GetSystemPermissions () As String()

Returns

String[]

String [] 对象的数组,其中包含与用户分配到的系统任务和角色关联的权限的列表。An array of String[] objects that contains a list of permissions associated with the system tasks and roles to which the user is assigned.

Examples

若要编译此代码示例,必须引用 Reporting Services WSDL 并导入某些命名空间。To compile this code example, you must reference the Reporting Services WSDL and import certain namespaces. 有关详细信息,请参阅 编译和运行代码示例For more information, see Compiling and Running Code Examples.

下面的代码示例使用 GetSystemPermissions 方法来检索与分配给当前用户的系统任务和角色关联的权限列表:The following code example uses the GetSystemPermissions method to retrieve a list of permissions associated with the system tasks and roles to which the current user is assigned:

[C#][C#]

using System;  
using System.IO;  
using System.Text;  
using System.Web.Services.Protocols;  
#endregion  

class Sample  
{  
   public static void Main()  
   {  
      ReportingService2005 rs = new ReportingService2005();  
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials;  

      string[] userpermissions = rs.GetSystemPermissions();  

      for (int t = 0; t <= userpermissions.GetUpperBound(0); t++)  
         Console.WriteLine(userpermissions[t]);  

      Console.ReadKey();  
   }  
}  

Remarks

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

SOAP 标头SOAP Headers (Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
所需的权限Required Permissions None

Applies to