The LoadFromStorageFile method loads the Data Transformation Services (DTS) package from the specified structured storage file. This includes information held in the objects and collections that belong to the Package object.
object.LoadFromStorageFile UNCFile, Password, [PackageID], _
[VersionID], [Name], [pVarPersistStgOfHost]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list. |
UNCFile | File specification of DTS package storage file. |
Password | Package password if the package is encrypted. |
PackageID | Package identifier, which is a string representation of a globally unique identifier (GUID). |
VersionID | Version identifier, which is a string representation of a GUID. |
Name | Package name. |
pVarPersistStgOfHost | Screen layout information associated with a package (for internal use only). |
If VersionID is not specified or is blank, the most recent version of the package is retrieved.
HRESULT LoadFromStorageFile(
BSTR UNCFile,
BSTR Password,
BSTR PackageID,
BSTR VersionID CPPDEFAULT(= NULL),
BSTR Name CPPDEFAULT(= NULL),
VARIANT *pUnkPersistStgOfHost CPPDEFAULT(= NULL));