ReportingService2006.GetPermissions(String) ReportingService2006.GetPermissions(String) ReportingService2006.GetPermissions(String) Method

정의

SharePoint 라이브러리의 특정 항목과 연결된 사용자 권한을 반환합니다. Returns the user permissions that are associated with a particular item in a SharePoint library.

public:
 cli::array <System::String ^> ^ GetPermissions(System::String ^ Item);
public string[] GetPermissions (string Item);
Public Function GetPermissions (Item As String) As String()
매개 변수
Item
String String String

파일 이름과 확장명을 포함하는 항목의 정규화된 URL입니다. The fully qualified URL of the item including the file name and extension.

반환
String[]

현재 사용자에 대한 항목에 할당된 태스크와 역할에 연결된 사용 권한 목록을 포함하는 String 개체의 배열입니다. An array of String objects that contains a list of permissions associated with the assigned tasks and roles of the item for the current user.

예제

using System;  
using System.Collections.Generic;  
using System.IO;  
using System.Text;  
using System.Web;  
using System.Web.Services;  
using System.Web.Services.Protocols;  

class Sample  
{  
    static void Main(string[] args)  
    {  
        ReportingService2006 rs = new ReportingService2006();  
        rs.Url = "http://<Server Name>" +  
            "/_vti_bin/ReportServer/ReportService2006.asmx";  
        rs.Credentials =   
            System.Net.CredentialCache.DefaultCredentials;  

        try  
        {  
            String[] permissions =   
                rs.GetPermissions(  
                    "http://<Server Name>/Docs/Documents" +  
                    "/AdventureWorks Sample Reports/" +  
                    "Sales Order Detail.rdl");  

            foreach (string perm in permissions)  
            {  
                Console.WriteLine(perm);  
            }  
        }  

        catch (SoapException e)  
        {  
            Console.WriteLine(e.Detail.InnerXml.ToString());  
        }  
    }  
}  
Imports System  
Imports System.IO  
Imports System.Text  
Imports System.Web.Services  
Imports System.Web.Services.Protocols  

Class Sample  

    Public Shared Sub Main()  

        Dim rs As New ReportingService2006()  
        rs.Url = "http://<Server Name>" + _  
            "/_vti_bin/ReportServer/ReportService2006.asmx"  
        rs.Credentials = _  
            System.Net.CredentialCache.DefaultCredentials  

        Try  
            Dim permissions As [String]() = _  
                rs.GetPermissions("http://<Server Name>" + _  
                    "/Docs/Documents/AdventureWorks Sample " + _  
                    "Reports/Sales Order Detail.rdl")  

            Dim perm As String  
            For Each perm In permissions  
                Console.WriteLine(perm)  
            Next perm  

        Catch e As SoapException  
            Console.WriteLine(e.Detail.InnerXml.ToString())  
        End Try  

    End Sub  

End Class  

설명

다음 표에서는 이 작업에 대한 헤더 및 사용 권한 정보를 보여 줍니다.The table below shows header and permissions information on this operation.

SOAP 헤더SOAP Headers (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
필요한 권한Required Permissions InclusionThresholdSettingNone

적용 대상