[in] Name of property to retrieve cache entry. For more information, see property identifiers.
GetOrCreateCacheEntry
Creates or retrieves a cache entry for a specified property.
Syntax
Section titled “Syntax”template <typename T>CCacheEntry<T>* GetOrCreateCacheEntry(const CString& strKey);Parameters
Section titled “Parameters”strKey
Return value
Section titled “Return value”Returns a pointer to a CCacheEntry object, which represents the cache entry for the specified property.
Example
Section titled “Example”The following example demonstrates use of the GetOrCreateCacheEntry function.
STDMETHODIMP Acme4321::put_Bandwidth(double val){ HRESULT hr = S_OK;
// Retrieve the cache entry for the Bandwidth property CCacheEntry<double>* pEntry = GetOrCreateCacheEntry<double>(_T("IAcme4321.Bandwidth"));
// ...
return hr;}