skip to main content
Developing ADO Applications : Persisting Information
 

Persisting Information

A data source object can be persisted (saved). The ADO Client uses the IPersist and the IPersistFile interfaces to persist the class ID and the values of data source properties set by the data consumer. With the IPersistFile interface, the data consumer saves the information to a file.
When the data consumer loads the persisted data source, the ADO Client retrieves the saved information. All of the initialization properties return to the state that was current when the data source was persisted. The stored values overwrite the values of any properties the data consumer might have set.