ReportingService2005.GetSystemPermissions 메서드

정의

현재 사용자의 시스템 사용 권한을 검색합니다.

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

반환

String[]

사용자가 할당된 시스템 작업 및 역할과 관련된 사용 권한 목록을 포함하는 String[] 개체의 배열입니다.

예제

이 코드 예제를 컴파일하려면 Reporting Services WSDL을 참조하고 특정 네임스페이스를 가져와야 합니다. 자세한 내용은 코드 예제 컴파일 및 실행을 참조하세요.

다음 코드 예제에서는 메서드를 GetSystemPermissions 사용하여 현재 사용자가 할당된 시스템 작업 및 역할과 관련된 사용 권한 목록을 검색합니다.

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

설명

다음 표에서는 이 작업에 대한 헤더 및 사용 권한 정보를 보여 줍니다.

SOAP 헤더 (Out) ServerInfoHeaderValue
필요한 권한 없음

적용 대상