The SaveToStorageFile method saves the information being held in the Package object to a structured storage file. This includes information held in the objects and collections that belong to the Package object.
| Package Object |
object.SaveToStorageFile(
[UNCFile],
[OwnerPassword],
[OperatorPassword],
[pVarPersistStgOfHost],
[bReusePasswords])
| Part | Description |
|---|---|
| Package | Expression that evaluates to an object in the Applies To list |
| UNCFile | File name |
| OwnerPassword | Owner password |
| OperatorPassword | Operator password |
| pVarPersistStgOfHost | Screen layout information associated with a package (for internal use) |
| bReusePasswords | Whether to reuse a password |
The default for bReusePassword is True.
HRESULT SaveToStorageFile(
BSTR UNCFile,
BSTR OwnerPassword
BSTR OperatorPassword
VARIANT *pVarPersistStgOfHost
VARIANT_BOOL bReusePasswords;