次の方法で共有


ReportingService2010.GetUserModel(String, String) メソッド

定義

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

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

パラメーター

Model
String

ファイル名と .smdl ファイル名拡張子を含む、モデルの完全修飾 URL です。

Perspective
String

レポート モデルから取得するパースペクティブの ID です。

戻り値

Byte[]

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

属性

注釈

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

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

(Out) ServerInfoHeaderValue
ネイティブ モードで必要なアクセス許可 ReadProperties
SharePoint モードに必要なアクセス許可 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

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

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

適用対象