IOleCache2  1PP4ZUP

The IOleCache2 interface allows object clients to selectively update each cache that was created with IOleCache::Cache1PQGN_K.

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 CreateDataCache7_G16Y.

When to Use

The OLE-provided implementation includes implementations of the IOleCache8PI.8S 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.

Methods in VTable Order

IUnknown Methods

Description

QueryInterface2Y54585

Returns pointers to supported interfaces.

AddRef1SHW0SS

Increments the reference count.

ReleaseDUW01A

Decrements the reference count.

 

IOleCache Methods

Description

Cache1PQGN_K

Adds a presentation to the data or view cache.

Uncache61VVMZ0

Removes a presentation previously added with IOleCache::Cache.

EnumCache17IZU1_

Returns an object to enumerate the current cache connections.

InitCache19BP9UA

Fills the cache with all the presentation data from the data object.

SetDataC9HNG.

Fills the cache with specified format of presentation data.

 

IOleCache2 Methods

Description

UpdateCacheG5XMZG

Updates the specified cache(s).

DiscardCacheLLDV3J

Discards cache(s) found in memory.