TmdlSerializer.DeserializeModelFromCompressedFile 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DeserializeModelFromCompressedFile(String) |
將指定壓縮封存盤案中的 TMDL 檔集還原串行化為其模型物件對等專案。 |
DeserializeModelFromCompressedFile(String, MetadataDeserializationOptions) |
將指定壓縮封存盤案中的 TMDL 檔集還原串行化為其模型物件對等專案。 |
DeserializeModelFromCompressedFile(String)
將指定壓縮封存盤案中的 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 檔集還原串行化為其模型物件對等專案。
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 文字的格式有效,但包含無效的元數據。