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
Return Value
S_OK
The method completed successfully.
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.