Udostępnij za pośrednictwem


Metoda ReportingService2010.ListRoles

Zwraca nazwy i opisy ról dla danej witryny programu SharePoint.

Przestrzeń nazw:  ReportService2010
Zestaw:  ReportService2010 (w ReportService2010.dll)

Składnia

'Deklaracja
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListRoles", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function ListRoles ( _
    SecurityScope As String, _
    SiteUrl As String _
) As Role()
'Użycie
Dim instance As ReportingService2010
Dim SecurityScope As String
Dim SiteUrl As String
Dim returnValue As Role()

returnValue = instance.ListRoles(SecurityScope, _
    SiteUrl)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListRoles", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public Role[] ListRoles(
    string SecurityScope,
    string SiteUrl
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListRoles", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
array<Role^>^ ListRoles(
    String^ SecurityScope, 
    String^ SiteUrl
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListRoles", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member ListRoles : 
        SecurityScope:string * 
        SiteUrl:string -> Role[] 
public function ListRoles(
    SecurityScope : String, 
    SiteUrl : String
) : Role[]

Parametry

  • SecurityScope
    Typ: System.String
    Zakres zabezpieczeń dla elementów powrócić.
  • SiteUrl
    Typ: System.String
    Pełni kwalifikowany adres URL witryny programu SharePoint.
    Ten parametr jest ustawiony nullodwołanie o wartości null (Nothing w języku Visual Basic) (nic nie w języku Visual Basic) podczas wywoływania metoda w trybie macierzystym.

Wartość zwracana

Typ: array<ReportService2010.Role[]
Tablica Role obiekty, które zawierają informacje na temat ról dla danej witryny, filtrowane według podanej SecurityScope parametru.

Uwagi

W poniższej tabela przedstawiono informacje nagłówka i uprawnienia na tej operacji.

Użycie nagłówek protokołu SOAP

(W)TrustedUserHeaderValue

(Ruch wychodzący)ServerInfoHeaderValue

Tryb macierzysty wymagane uprawnienia

Brak

Tryb programu SharePoint wymagane uprawnienia

Brak

Ta metoda wygeneruje rsUnsupportedParameterForModeException wyjątku, jeśli nie-null określono wartość dla SiteUrl parametr w trybie macierzystym.