Export (0) Print
Expand All

IOleCache2 interface

Enables object clients to selectively update each cache that was created with IOleCache::Cache.

When to implement

The IOleCache2 interface can be implemented by an object handler and an in-process server. Rather than implementing, however, it is typical to use or aggregate the OLE implementation in the default handler, a pointer to which is available through a call to CreateDataCache.

When to use

The OLE-provided implementation includes implementations of the IOleCache interface methods, from which IOleCache2 inherits its contract definition. The IOleCache2 interface is called by container applications, object handlers, or in process servers to update one or more of the caches that were created with the IOleCache::Cache method. This extended interface was added so client applications can exercise precise control over updates to the caches being maintained.

Members

The IOleCache2 interface inherits from IOleCache. IOleCache2 also has these types of members:

Methods

The IOleCache2 interface has these methods.

MethodDescription
DiscardCache

Discards the caches found in memory.

UpdateCache

Updates the specified caches.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IOleCache2 is defined as 00000128-0000-0000-C000-000000000046

See also

CreateDataCache
IOleCache
IOleCacheControl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft