[in] Name of property to invalidate. For more information, see property identifiers.
UpdateCacheEntry
Updates the cached value for the specified property.
Syntax
Section titled “Syntax”template <typename T>void UpdateCacheEntry(const CString& strKey, T value);Parameters
Section titled “Parameters”strKey
value
[in] New value to store in the cache for the specified property.
Example
Section titled “Example”The following example demonstrates use of the UpdateCacheEntry function.
STDMETHODIMP Acme4321::Configure(double Frequency, double Gain){ HRESULT hr = S_OK;
hr = io.Printf(_T("SENS:CONFIG %0.15g,%f"), Frequency, Gain);
if (SUCCEEDED(hr)) { UpdateCacheEntry(_T("IAcme4321.Frequency"), Frequency);
UpdateCacheEntry(_T("IAcme4321.Gain"), Gain); }
return hr;}