Поделиться через


Метод ReportingService2005.GetSystemPermissions

Retrieves the system permissions of the current user.

Пространство имен:  ReportService2005
Сборка:  ReportService2005 (в ReportService2005.dll)

Синтаксис

'Декларация
Public Function GetSystemPermissions As String()
'Применение
Dim instance As ReportingService2005 
Dim returnValue As String()

returnValue = instance.GetSystemPermissions()
public string[] GetSystemPermissions()
public:
array<String^>^ GetSystemPermissions()
member GetSystemPermissions : unit -> string[] 
public function GetSystemPermissions() : String[]

Возвращаемое значение

Тип: array<System.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.

Замечания

The table below shows header and permissions information on this operation.

SOAP Headers

(Out) ServerInfoHeaderValue

Required Permissions

None

Примеры

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.

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#]

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();
   }
}

См. также

Справочник

ReportingService2005 Класс

Пространство имен ReportService2005