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);

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);

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);

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);

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