MetadataSerializationContext.LoadFromDatabase 方法

定義

多載

LoadFromDatabase(Database, Object)

使用一組代表所提供資料庫的檔載入內容。

LoadFromDatabase(Database, MetadataSerializationOptions, Object)

使用一組檔載入內容,這些檔會使用指定的選項來代表所提供的資料庫。

LoadFromDatabase(Database, Object)

使用一組代表所提供資料庫的檔載入內容。

public void LoadFromDatabase (Microsoft.AnalysisServices.Tabular.Database db, object context = default);
member this.LoadFromDatabase : Microsoft.AnalysisServices.Tabular.Database * obj -> unit
Public Sub LoadFromDatabase (db As Database, Optional context As Object = Nothing)

參數

db
Database

Database,這是元數據的來源。

context
Object

將與串行化作業相關聯的選擇性用戶內容。

例外狀況

指定的資料庫是 Null 參考 (Visual Basic 中的 Nothing)。

備註

在執行之前載入內容中的任何元數據檔都會移除。

如果指定用戶內容,則會包含在串行化主機的通知中。

適用於

LoadFromDatabase(Database, MetadataSerializationOptions, Object)

使用一組檔載入內容,這些檔會使用指定的選項來代表所提供的資料庫。

public void LoadFromDatabase (Microsoft.AnalysisServices.Tabular.Database db, Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions options, object context = default);
member this.LoadFromDatabase : Microsoft.AnalysisServices.Tabular.Database * Microsoft.AnalysisServices.Tabular.Serialization.MetadataSerializationOptions * obj -> unit
Public Sub LoadFromDatabase (db As Database, options As MetadataSerializationOptions, Optional context As Object = Nothing)

參數

db
Database

Database,這是元數據的來源。

options
MetadataSerializationOptions

串行化作業的選項。

context
Object

將與串行化作業相關聯的選擇性用戶內容。

例外狀況

  • 指定的資料庫是 Null 參考 (Visual Basic 中的 Nothing)。
  • 指定的選項實例是 Null 參考(Visual Basic 中的 Nothing)。

備註

在執行之前載入內容中的任何元數據檔都會移除。

如果指定用戶內容,則會包含在串行化主機的通知中。

適用於