共用方式為


TmdlSerializer.DeserializeModelFromCompressedFile 方法

定義

多載

DeserializeModelFromCompressedFile(String)

重要事項:TMDL 仍處於預覽狀態,且 API 介面可能仍會在 GA 之前修改!

將指定壓縮封存盤案中的 TMDL 檔集還原串行化為其模型物件對等專案。

DeserializeModelFromCompressedFile(String, MetadataDeserializationOptions)

重要事項:TMDL 仍處於預覽狀態,且 API 介面可能仍會在 GA 之前修改!

將指定壓縮封存盤案中的 TMDL 檔集還原串行化為其模型物件對等專案。

DeserializeModelFromCompressedFile(String)

重要事項:TMDL 仍處於預覽狀態,且 API 介面可能仍會在 GA 之前修改!

將指定壓縮封存盤案中的 TMDL 檔集還原串行化為其模型物件對等專案。

public static Microsoft.AnalysisServices.Tabular.Model DeserializeModelFromCompressedFile (string path);
static member DeserializeModelFromCompressedFile : string -> Microsoft.AnalysisServices.Tabular.Model
Public Shared Function DeserializeModelFromCompressedFile (path As String) As Model

參數

path
String

壓縮文件的路徑。

傳回

根據 TMDL 檔建立的 Model 實例。

例外狀況

指定的路徑是 Null 參考 (在 Visual Basic 中為 Nothing) 或空白。

指定的路徑不存在。

壓縮文件的內容包含無效格式的 TMDL 文字。

壓縮檔案中的內容包含 TMDL 文字的格式有效,但包含無效的元數據。

適用於

DeserializeModelFromCompressedFile(String, MetadataDeserializationOptions)

重要事項:TMDL 仍處於預覽狀態,且 API 介面可能仍會在 GA 之前修改!

將指定壓縮封存盤案中的 TMDL 檔集還原串行化為其模型物件對等專案。

public static Microsoft.AnalysisServices.Tabular.Model DeserializeModelFromCompressedFile (string path, Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions options);
static member DeserializeModelFromCompressedFile : string * Microsoft.AnalysisServices.Tabular.Serialization.MetadataDeserializationOptions -> Microsoft.AnalysisServices.Tabular.Model
Public Shared Function DeserializeModelFromCompressedFile (path As String, options As MetadataDeserializationOptions) As Model

參數

path
String

壓縮文件的路徑。

options
MetadataDeserializationOptions

還原串行化動作的選項。

傳回

根據 TMDL 檔建立的 Model 實例。

例外狀況

  • 指定的路徑是 Null 參考 (在 Visual Basic 中為 Nothing) 或空白。
  • 指定的選項實例是 Null 參考(Visual Basic 中的 Nothing)。

指定的路徑不存在。

壓縮文件的內容包含無效格式的 TMDL 文字。

壓縮檔案中的內容包含 TMDL 文字的格式有效,但包含無效的元數據。

適用於