TmdlSerializer.SerializeDatabaseToCompressedFile 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SerializeDatabaseToCompressedFile(Database, String) |
重要事項:TMDL 仍處於預覽狀態,且 API 介面可能仍會在 GA 之前修改! 使用預設串行化策略,將記憶體內的完整 Database 串行化為一組 COMRESsed 封存盤案中的 TMDL 檔。 |
SerializeDatabaseToCompressedFile(Database, String, MetadataSerializationOptions) |
重要事項:TMDL 仍處於預覽狀態,且 API 介面可能仍會在 GA 之前修改! 使用指定的選項和預設串行化策略,將記憶體中的完整記憶體中 Database 串行化至一組 comressed 封存盤案中的 TMDL 檔。 |
SerializeDatabaseToCompressedFile(Database, String)
重要事項:TMDL 仍處於預覽狀態,且 API 介面可能仍會在 GA 之前修改!
使用預設串行化策略,將記憶體內的完整 Database 串行化為一組 COMRESsed 封存盤案中的 TMDL 檔。
public static void SerializeDatabaseToCompressedFile (Microsoft.AnalysisServices.Tabular.Database db, string path);
static member SerializeDatabaseToCompressedFile : Microsoft.AnalysisServices.Tabular.Database * string -> unit
Public Shared Sub SerializeDatabaseToCompressedFile (db As Database, path As String)
參數
- db
- Database
要串行化的資料庫。
- path
- String
將儲存包含資料庫檔之壓縮檔的路徑。
例外狀況
- 指定的資料庫是 Null 參考 (Visual Basic 中的 Nothing)。
- 指定的路徑是 Null 參考 (在 Visual Basic 中為 Nothing) 或空白。
備註
除了包含資料庫子模型串行化的所有檔之外,資料庫的屬性也會在指定的檔中擷取。
適用於
SerializeDatabaseToCompressedFile(Database, String, MetadataSerializationOptions)
重要事項:TMDL 仍處於預覽狀態,且 API 介面可能仍會在 GA 之前修改!
使用指定的選項和預設串行化策略,將記憶體中的完整記憶體中 Database 串行化至一組 comressed 封存盤案中的 TMDL 檔。
public static void SerializeDatabaseToCompressedFile (Microsoft.AnalysisServices.Tabular.Database db, string path, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options);
static member SerializeDatabaseToCompressedFile : Microsoft.AnalysisServices.Tabular.Database * string * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions -> unit
Public Shared Sub SerializeDatabaseToCompressedFile (db As Database, path As String, options As MetadataSerializationOptions)
參數
- db
- Database
要串行化的資料庫。
- path
- String
將儲存包含資料庫檔之壓縮檔的路徑。
- options
- MetadataSerializationOptions
串行化動作的選項。
例外狀況
- 指定的資料庫是 Null 參考 (Visual Basic 中的 Nothing)。
- 指定的路徑是 Null 參考 (在 Visual Basic 中為 Nothing) 或空白。
- 指定的選項實例是 Null 參考(Visual Basic 中的 Nothing)。
所提供的選項包含無效的設定。
備註
除了包含資料庫子模型串行化的所有檔之外,資料庫的屬性也會在指定的檔中擷取。