ReportingService2010.GetSystemPermissions 메서드

정의

현재 사용자의 시스템 사용 권한을 검색합니다. 이 메서드는 기본 모드에만 적용됩니다.

public:
 cli::array <System::String ^> ^ GetSystemPermissions();
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetSystemPermissions", 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("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public string[] GetSystemPermissions ();
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetSystemPermissions", 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("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
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()  
   {  
      ReportingService2010 rs = new ReportingService2010();  
      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 헤더 사용 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
기본 모드 필수 권한 없음
SharePoint 모드 필수 권한 지원되지 않음

이 메서드는 SharePont 모드에서 호출될 때 예외를 throw합니다 OperationNotSupportedSharePointMode .

적용 대상