次の方法で共有


GetRoleProperties メソッド

関連付けられたタスクのロール情報とコレクションを返します。

名前空間:  ReportService2010
アセンブリ:  ReportService2010 (ReportService2010.dll)

構文

'宣言
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRoleProperties", 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)> _
Public Function GetRoleProperties ( _
    Name As String, _
    SiteUrl As String, _
    <OutAttribute> ByRef Description As String _
) As String()
'使用
Dim instance As ReportingService2010
Dim Name As String
Dim SiteUrl As String
Dim Description As String
Dim returnValue As String()

returnValue = instance.GetRoleProperties(Name, _
    SiteUrl, Description)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRoleProperties", 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)]
public string[] GetRoleProperties(
    string Name,
    string SiteUrl,
    out string Description
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRoleProperties", 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)]
public:
array<String^>^ GetRoleProperties(
    String^ Name, 
    String^ SiteUrl, 
    [OutAttribute] String^% Description
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetRoleProperties", 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)>]
member GetRoleProperties : 
        Name:string * 
        SiteUrl:string * 
        Description:string byref -> string[] 
public function GetRoleProperties(
    Name : String, 
    SiteUrl : String, 
    Description : String
) : String[]

パラメーター

  • SiteUrl
    型: System. . :: . .String
    SharePoint サイトの完全修飾 URL です。
    ネイティブ モードでこのメソッドを呼び出す場合は、このパラメーターを NULL (Visual Basic の場合は Nothing) に設定します。

戻り値

型: array<System. . :: . .String> [] () [] []
ロール情報を表す String の配列です。

説明

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

SOAP ヘッダーの使用方法

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

ネイティブ モードで必要な権限

ReadRoleProperties (システム)

SharePoint モードで必要な権限

ManagePermissions()()()()

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