Share via


ReportingService2006.GetUserModel(String, String) 方法

定义

返回当前用户的模型的语义段。

public:
 cli::array <System::Byte> ^ GetUserModel(System::String ^ Model, System::String ^ Perspective);
public byte[] GetUserModel (string Model, string Perspective);
member this.GetUserModel : string * string -> byte[]
Public Function GetUserModel (Model As String, Perspective As String) As Byte()

参数

Model
String

模型的完全限定 URL,其中包括文件名和 .smdl 文件扩展名。

Perspective
String

要从报表模型检索的透视的 ID。

返回

Byte[]

一个字节数组,该数组包含用户对其具有权限的模型的语义部分的 SMDL 模型定义。 有关这种数据类型的详细信息,请参阅 Microsoft .NET Framework 文档中的“字节结构”。

注解

下表显示了有关此操作的标头和权限信息。

SOAP 标头 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
所需的权限 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

返回的模型定义仅限于用户有权查看或使用的模型的语义部分。

提供 时 Perspective ,返回的用户模型仅反映用户有权从该角度查看的模型项。

适用于