The LoadFromStorageFile method loads the DTS package from the specified structured storage file. This includes information held in the objects and collections that belong to the Package object.
| Package Object |
object.LoadFromStorageFile(
UNCFile,
Password,
[PackageID],
[VersionID],
[Name],
[pVarPersistStgOfHost])
| Part | Description |
|---|---|
| Package | Expression that evaluates to an object in the Applies To list |
| UNCFile | File name |
| Password | Package password if the package is encrypted |
| PackageID | ITDS package identifier |
| RevisionID | Version identifier |
| Name | Package name |
| pVarPersistStgOfHost | Screen layout information associated with a package (for internal use) |
If RevisionID is not specified or is blank, the most recent version of the package is retrieved.
HRESULT LoadFromStorageFile(BSTR UNCFile,
BSTR Password,
BSTR PackageID,
BSTR RevisionID,
BSTR Name,
LPUNKNOWN pUnkPersistStgOfHost);