Contents Index Topic Contents | ||
Previous Topic: IPersistHistory::SaveHistory Next Topic: IPersistHistory::SetPositionCookie |
IPersistHistory::LoadHistory
HRESULT LoadHistory( [in]IStream *pStream, [in]IBindCtx *pbc);The container calls this method to request that the component restore its state.
- Returns:
S_OK The component was able to reload its persistent state. E_FAIL The component was unable to reload its persistent state. E_OUTOFMEMORY There was not enough memory to reload the persistent state of the component. E_POINTER The stream or the bind context supplied by the container were invalid.
- pStream
- [in] Pointer to an interface on the stream from which the object should loaded its persistent state
- pbc
- [in] Pointer to an interface on a bind context. The bind context can be used in binding operations to restore the component's state and should be passed along to any objects contained by the component if a binding is to be performed by the contained component.
The component should under no circumstances add a reference to the supplied stream. The stream should not be cached by the component.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.