IObjectCol::Refresh

See Also

This method refreshes the cached image of the collection. All unchanged data for objects in the collection is flushed from the cache.

HRESULT Refresh(long    iMilliseconds);

Parameters

iMilliseconds
[in]
All unchanged data relating to the collection that has been in the cache for longer than iMilliseconds milliseconds is refreshed. Set to zero to refresh all unchanged data.

Return Value

S_OK

The method completed successfully.

Error
Values

This method failed to complete successfully.

Note   The Refresh()method asynchronously refreshes the object collection (reloads the object collection and refreshes target objects) when the async mode is in effect. The calling thread should check to determine whether refresh is complete. If the calling thread tries to read data, refresh the collection, or construct an enumerator while refresh is in progress, it will be blocked until refresh is complete.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.