ReportingService2006.GetUserModel(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳模型的語意部分給目前使用者。
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 標頭 | (在) TrustedUserHeaderValue (出局) ServerInfoHeaderValue |
| 必要權限 | <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> |
回傳的模型定義僅限於使用者有權限查看或使用的模型語意部分。
當 Perspective 提供時,回傳的使用者模型僅反映使用者在該視角中有權限看到的模型項目。