次の方法で共有


ReportingService2010.GetUserModel メソッド

現在のユーザーのモデルのセマンティック部分を返します。

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

構文

'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserModel", 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 GetUserModel ( _
    Model As String, _
    Perspective As String _
) As Byte()
'使用
Dim instance As ReportingService2010 
Dim Model As String 
Dim Perspective As String 
Dim returnValue As Byte()

returnValue = instance.GetUserModel(Model, _
    Perspective)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserModel", 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 byte[] GetUserModel(
    string Model,
    string Perspective
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserModel", 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<unsigned char>^ GetUserModel(
    String^ Model, 
    String^ Perspective
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetUserModel", 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 GetUserModel : 
        Model:string * 
        Perspective:string -> byte[] 
public function GetUserModel(
    Model : String, 
    Perspective : String
) : byte[]

パラメーター

  • Model
    型: System.String
    ファイル名と .smdl ファイル名拡張子を含む、モデルの完全修飾 URL です。
  • Perspective
    型: System.String
    レポート モデルから取得するパースペクティブの ID です。

戻り値

型: array<System.Byte[]
ユーザーが権限を持っているモデルのセマンティック部分の SMDL モデル定義を表すバイト配列です。このデータ型の詳細については、Microsoft .NET Framework のドキュメントの「Byte 構造体」を参照してください。

説明

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

SOAP ヘッダーの使用方法

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

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

ReadProperties

SharePoint モードで必要な権限

ViewListItems

返されるモデル定義は、モデルの、ユーザーが表示または使用する権限を持っているセマンティック部分に制限されます。

Perspective を指定すると、返されるユーザー モデルには、ユーザーがそのパースペクティブで表示する権限を持っているモデル アイテムだけが反映されます。

関連項目

参照

ReportingService2010 クラス

ReportService2010 名前空間

その他の技術情報

モデル デザイナーでのパースペクティブの処理