IRegion TKey, TValue  InvalidateRegion Method (Object)Pivotal GemFire .NET Client Documentation
Invalidates this region.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll) Version: 8.1.0.0
Syntax

void InvalidateRegion(
	Object callbackArg
)

Parameters

callbackArg
Type: System Object
user-defined parameter to pass to callback events triggered by this method
Exceptions

ExceptionCondition
[!: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
[!:CacheListenerException] if CacheListener throws an exception; if this occurs some subregions may have already been successfully invalidated
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