IRegion TKey, TValue  RemoveAll Method (ICollection TKey , Object)Pivotal GemFire .NET Client Documentation
Removes all of the entries for the specified keys from this region. The effect of this call is equivalent to that of calling {@link #remove(Object)} on this region once for each key in the specified collection. If an entry does not exist that key is skipped; EntryNotFoundException is not thrown. For local region instance - this method is not applicable. Updates the LastAccessedTime and [!:CacheStatistics.HitCount] and [!:CacheStatistics.MissCount] for this region and the entry.

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

void RemoveAll(
	ICollection<TKey> keys,
	Object callbackArg
)

Parameters

keys
Type: System.Collections.Generic ICollection TKey 
the collection of keys
callbackArg
Type: System Object
an argument that is passed to the callback functions. Optional.
Exceptions

ExceptionCondition
[!:IllegalArgumentException] If the collection of keys is null or empty.
[!:CacheServerException] If an exception is received from the Java cache server while processing the request.
[!:NotConnectedException] if region is not connected to the cache because the client cannot establish usable connections to any of the given servers For pools configured with locators, if no locators are available, innerException of NotConnectedException is set to NoAvailableLocatorsException.
[!:RegionDestroyedException] If region destroy is pending.
System TimeoutException if operation timed out.
[!:UnknownException] For other exceptions.
System NotSupportedException if it is called by local region instance [!:Region.GetLocalView]
See Also