ReportingService2010.ListRoles(String, String) 메서드

정의

보고서 서버 또는 지정된 SharePoint 사이트에 대한 역할의 이름과 설명을 반환합니다.

public:
 cli::array <ReportService2010::Role ^> ^ ListRoles(System::String ^ SecurityScope, System::String ^ SiteUrl);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListRoles", 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 ReportService2010.Role[] ListRoles (string SecurityScope, string SiteUrl);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListRoles", 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.ListRoles : string * string -> ReportService2010.Role[]
Public Function ListRoles (SecurityScope As String, SiteUrl As String) As Role()

매개 변수

SecurityScope
String

항목을 반환하기 위한 보안 범위입니다. 유효한 보안 범위에 대해서는 ListSecurityScopes()를 참조하세요.

SiteUrl
String

SharePoint 사이트에 대한 정규화된 URL입니다.

기본 모드에서 이 메서드를 호출할 때 이 매개 변수를 null(Visual Basic의 경우 Nothing)로 설정합니다.

반환

Role[]

지정된 사이트의 역할에 대한 정보를 포함하는 Role 개체의 배열이며 제공된 SecurityScope 매개 변수에 의해 필터링됩니다.

특성

설명

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

SOAP 헤더 사용 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
기본 모드 필수 권한 없음
SharePoint 모드 필수 권한 없음

이 메서드는 기본 모드에서 rsUnsupportedParameterForModeException 매개 변수에 대해 null이 아닌 값이 지정된 경우 예외를 SiteUrl throw합니다.

적용 대상