CCacheEntry<T>::SetValid
Sets the valid state of a cache entry to true.
Syntax
Section titled “Syntax”virtual void CCacheEntry<T>::SetValid()Example
Section titled “Example”The following example demonstrates use of the SetValid function.
STDMETHODIMP Acme4321::put_Configure(double Frequency, double Gain){ HRESULT hr = S_OK;
hr = InstrPrintCommand(Frequency, Gain);
if (SUCCEEDED(hr)) { // ...
// Retrieve the cache entry for the Frequency property CCacheEntry<double>* pEntry = GetOrCreateCacheEntry<double>(_T("IAcme4321.Frequency"));
pEntry->SetValid(); }
return hr;}