Click or drag to resize
IRegionTKey, TValueInvalidateRegion Method
Invalidates this region.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
void InvalidateRegion()
Exceptions
ExceptionCondition
CacheListenerException if CacheListener throws an exception; if this occurs some subregions may have already been successfully invalidated
NotConnectedException if not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it. For pools configured with locators, if no locators are available, innerException of NotConnectedException is set to NoAvailableLocatorsException.
RegionDestroyedException if this region has been destroyed
Remarks

The invalidation will cascade to all the subregions and cached entries. The region and the entries in it will still exist. For local region instance - invalidates this region without distributing to other caches. For distributed region instance - Invalidates this region and this operation is propogated to the Gemfire cache server to which it is connected with.

To remove all the entries and the region, use DestroyRegion.

Does not update any CacheStatistics.

See Also