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

要從報表模型擷取之檢視方塊的識別碼。

傳回

Byte[]

位元組陣列,其中包含使用者具有權限之模型語意部分的 SMDL 模型定義。 如需有關這個資料類型的詳細資訊,請參閱 Microsoft .NET Framework 文件集中的<位元組結構>。

屬性

備註

下表顯示標頭以及有關這項作業的權限資訊。

SOAP 標頭使用方式 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
原生模式所需的許可權 ReadProperties
SharePoint 模式的必要許可權 ViewListItems

傳回的模型定義僅限於使用者有權查看或使用之模型的語義部分。

Perspective 提供時,所傳回的使用者模型只會反映使用者有權在該觀點中看到的模型專案。

適用於