语言

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

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

Perspective
String

从报告模型中检索的视角ID。

返回

Byte[]

一个字节数组,包含用户有权限的模型语义部分的SMDL模型定义。 有关该数据类型的更多信息,请参见Microsoft .NET框架文档中的“字节结构”。

属性

注解

下表显示了该操作的头部和权限信息。

SOAP头的使用 (在) TrustedUserHeaderValue

(出局) ServerInfoHeaderValue
本地模式所需权限 ReadProperties
SharePoint 模式 必要权限 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

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

当 Perspective 提供时,用户返回的模型仅反映用户在该视角中有权限查看的模型项目。

适用于