Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
LocalCache..::.InstantiateCacheEvent Method
LocalCache Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Factory pattern: instantiate a new CacheEventArgs corresponding to the specified parameters.

Namespace: Tangosol.Net.Cache
Assembly: Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    protected virtual CacheEventArgs InstantiateCacheEvent(
    	CacheEventType type,
    	Object key,
    	Object valueOld,
    	Object valueNew
    )

#### Parameters

type
  Type: Tangosol.Net.Cache..::.CacheEventType
  This event's type, one of CacheEventType values.

key
  Type: System..::.Object
  The key into the cache.

valueOld
  Type: System..::.Object
  The old value (for update and delete events).

valueNew
  Type: System..::.Object
  The new value (for insert and update events).

#### Return Value

A new instance of the CacheEventArgs class (or a subclass thereof).

# See Also

LocalCache Class
Tangosol.Net.Cache Namespace