語言

BacPackage.Load 方法

定義

多載

名稱 Description
Load(Stream)

從指定的 Stream. 載入一個套件。

Load(String)

載入由 . fileName指定的套件檔案。

Load(Stream, DacSchemaModelStorageType)

從指定的 Stream. 載入一個套件。

Load(String, DacSchemaModelStorageType)

載入由 . fileName指定的套件檔案。

Load(Stream)

從指定的 Stream. 載入一個套件。

public static Microsoft.SqlServer.Dac.BacPackage Load(System.IO.Stream stream);
static member Load : System.IO.Stream -> Microsoft.SqlServer.Dac.BacPackage
Public Shared Function Load (stream As Stream) As BacPackage

參數

stream
Stream

串流從哪裡閱讀包裝。

傳回

DacPackage 代表從指定檔案載入的套件的實例。

例外狀況

如果讀取套件時有問題;或是套件中未包含匯出資料。

適用於

Load(String)

載入由 . fileName指定的套件檔案。

public static Microsoft.SqlServer.Dac.BacPackage Load(string fileName);
static member Load : string -> Microsoft.SqlServer.Dac.BacPackage
Public Shared Function Load (fileName As String) As BacPackage

參數

fileName
String

套件檔案的路徑。

傳回

DacPackage 代表從指定檔案載入的套件的實例。

例外狀況

如果讀取套件時有問題;或者套件是否包含匯出資料。

適用於

Load(Stream, DacSchemaModelStorageType)

從指定的 Stream. 載入一個套件。

public static Microsoft.SqlServer.Dac.BacPackage Load(System.IO.Stream stream, Microsoft.SqlServer.Dac.DacSchemaModelStorageType modelStorageType);
static member Load : System.IO.Stream * Microsoft.SqlServer.Dac.DacSchemaModelStorageType -> Microsoft.SqlServer.Dac.BacPackage
Public Shared Function Load (stream As Stream, modelStorageType As DacSchemaModelStorageType) As BacPackage

參數

stream
Stream

串流從哪裡閱讀包裝。

modelStorageType
DacSchemaModelStorageType

套件實例的後備儲存類型。

傳回

DacPackage 代表從指定檔案載入的套件的實例。

例外狀況

如果讀取套件時有問題;或是套件中未包含匯出資料。

適用於

Load(String, DacSchemaModelStorageType)

載入由 . fileName指定的套件檔案。

public static Microsoft.SqlServer.Dac.BacPackage Load(string fileName, Microsoft.SqlServer.Dac.DacSchemaModelStorageType modelStorageType);
static member Load : string * Microsoft.SqlServer.Dac.DacSchemaModelStorageType -> Microsoft.SqlServer.Dac.BacPackage
Public Shared Function Load (fileName As String, modelStorageType As DacSchemaModelStorageType) As BacPackage

參數

fileName
String

套件檔案的路徑。

modelStorageType
DacSchemaModelStorageType

套件實例的後備儲存類型。

傳回

DacPackage 代表從指定檔案載入的套件的實例。

例外狀況

如果讀取套件時有問題;或是套件中未包含匯出資料。

適用於