IObjectCol::Refresh

Meta Data Services Programming

Meta Data Services Programming

IObjectCol::Refresh

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]
This value is ignored.

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 asynchronous 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.

See Also

IObjectCol Interface