Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This class implements the IPersistStorage interface.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
template <
class T
>
class ATL_NO_VTABLE IPersistStorageImpl :
public IPersistStorage
Parameters
- T
Your class, derived from IPersistStorageImpl.
Members
Public Methods
Name |
Description |
---|---|
Retrieves the object's CLSID. |
|
Instructs the object to release all storage objects and enter HandsOff mode. The ATL implementation returns S_OK. |
|
Initializes a new storage. |
|
Checks whether the object's data has changed since it was last saved. |
|
Loads the object's properties from the specified storage. |
|
Saves the object's properties to the specified storage. |
|
Notifies an object that it can return to Normal mode to write to its storage object. The ATL implementation returns S_OK. |
Remarks
IPersistStorageImpl implements the IPersistStorage interface, which allows a client to request that your object load and save its persistent data using a storage.
The implementation of this class requires class T to make an implementation of the IPersistStreamInit interface available via QueryInterface. Typically this means that class T should derive from IPersistStreamInitImpl, provide an entry for IPersistStreamInit in the COM map, and use a property map to describe the class's persistent data.
Related Articles ATL Tutorial, Creating an ATL Project
Inheritance Hierarchy
IPersistStorage
IPersistStorageImpl
Requirements
Header: atlcom.h