Destroys the whole local region and provides a user-defined parameter object to any ICacheWriter invoked in the process. The region destroy is not distributed to other caches.

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.7.0.1

Syntax

C#
public void LocalDestroyRegion(
	IGFSerializable callback
)
Visual Basic (Declaration)
Public Sub LocalDestroyRegion ( _
	callback As IGFSerializable _
)
Visual C++
public:
void LocalDestroyRegion (
	IGFSerializable^ callback
)

Parameters

callback
IGFSerializable
a user-defined parameter to pass to callback events triggered by this call

Remarks

Destroy cascades to all entries and subregions. After the destroy, any attempt to use this region object will get a RegionDestroyedException.

Does not update any CacheStatistics.

Exceptions

ExceptionCondition
GemStone.GemFire.Cache..::CacheWriterException if a CacheWriter aborts the operation; if this occurs some subregions may have already been successfully destroyed.
GemStone.GemFire.Cache..::CacheListenerException if CacheListener throws an exception; if this occurs some subregions may have already been successfully invalidated

See Also