The SaveToStorageFile method saves the information being held in the Package2 object and its subordinate objects and collections to a structured storage file.
object.SaveToStorageFile(
[UNCFile],
[OwnerPassword],
[OperatorPassword],
[pVarPersistStgOfHost],
[bReusePasswords])
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
UNCFile | File specification to which package is to be written |
OwnerPassword | A string specifying the package owner password if the package is encrypted |
OperatorPassword | A string specifying the package user password if the package is encrypted |
pVarPersistStgOfHost | Screen layout information associated with a package (for internal use) |
bReusePasswords | A Boolean specifying whether to reuse package passwords |
A new version ID value is always generated when the package is saved.
The default for bReusePasswords is True.
HRESULT SaveToStorageFile(
BSTR UNCFile,
BSTR OwnerPassword
BSTR OperatorPassword
VARIANT *pVarPersistStgOfHost
VARIANT_BOOL bReusePasswords );