Share via


BacPackage.Load Method

Definition

Overloads

Load(Stream)

Load a package from the specified Stream.

Load(String)

Load a package file specified by fileName.

Load(Stream, DacSchemaModelStorageType)

Load a package from the specified Stream.

Load(String, DacSchemaModelStorageType)

Load a package file specified by fileName.

Load(Stream)

Load a package from the specified 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

Parameters

stream
Stream

Stream from which to read the package.

Returns

DacPackage instance that represents the package loaded from the specified file.

Exceptions

If there is a problem reading the package; or if the package does not contain exported data.

Applies to

Load(String)

Load a package file specified by 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

Parameters

fileName
String

Path to the package file.

Returns

DacPackage instance that represents the package loaded from the specified file.

Exceptions

If there is a problem reading the package; or if the package contains exported data.

Applies to

Load(Stream, DacSchemaModelStorageType)

Load a package from the specified 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

Parameters

stream
Stream

Stream from which to read the package.

modelStorageType
DacSchemaModelStorageType

Backing storage type for package instance.

Returns

DacPackage instance that represents the package loaded from the specified file.

Exceptions

If there is a problem reading the package; or if the package does not contain exported data.

Applies to

Load(String, DacSchemaModelStorageType)

Load a package file specified by 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

Parameters

fileName
String

Path to the package file.

modelStorageType
DacSchemaModelStorageType

Backing storage type for package instance.

Returns

DacPackage instance that represents the package loaded from the specified file.

Exceptions

If there is a problem reading the package; or if the package does not contain exported data.

Applies to