Share via


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[]

指定したサイトのロールに関する情報を表す、指定した SecurityScope パラメーターによってフィルター選択された Role オブジェクトの配列です。

属性

注釈

次の表に、この操作に関連するヘッダーおよび権限の情報を示します。

SOAP ヘッダーの使用方法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
ネイティブ モードで必要なアクセス許可 なし
SharePoint モードで必要なアクセス許可 なし

ネイティブ モードで SiteUrl パラメーターに NULL 以外の値が指定された場合、このメソッドは、rsUnsupportedParameterForModeException 例外をスローします。

適用対象