![]() | CCacheEntry<T>::UpdateValue |
Retrieves the value of a cache entry if the entry is valid.
template <typename T> void GetCacheEntryValue(const CString& strKey, T* value);
[in] Name of the property for which we want to retrieve the cached value. For more information, see the topic Property Identifiers.
[out] Value of cache entry. If the entry is not valid, then this value is undefined.
The following example demonstrates use of the UpdateValue function.
// CoAcme4321.cpp STDMETHODIMP Acme4321::Configure(double Frequency, double Gain) { HRESULT hr = S_OK; double dFreq = 0; GetCacheEntryValue(_T("IAcme4321.Frequency"), &dFreq); return hr; }