Determines whether an object has changed since it was last saved to its current storage.
HRESULT IsDirty( );
This method has no parameters.
This method returns S_OK to indicate that the object has changed. Otherwise, it returns S_FALSE.
Use this method to determine whether an object should be saved before closing it. The dirty flag for an object is conditionally cleared in the IPersistStorage::Save method.
For example, you could optimize a File Save operation by calling the IPersistStorage::IsDirty method for each object and then calling the IPersistStorage::Save method only for those objects that are dirty.
A container with one or more contained objects must maintain an internal dirty flag that is set when any of its contained objects has changed since it was last saved.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|