Region GetAll Method ( ICacheableKey , Dictionary ICacheableKey, IGFSerializable , Dictionary ICacheableKey, Exception , Boolean)Pivotal GemFire .NET Client Documentation
Gets values for an array of keys from the local cache or server. If value for a key is not present locally then it is requested from the java server. The value returned is not copied, so multi-threaded applications should not modify the value directly, but should use the update methods. Updates the LastAccessedTime and [!:CacheStatistics.HitCount] and [!:CacheStatistics.MissCount] for this region and the entry.

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

public void GetAll(
	ICacheableKey[] keys,
	Dictionary<ICacheableKey, IGFSerializable> values,
	Dictionary<ICacheableKey, Exception> exceptions,
	bool addToLocalCache


Type:  GemStone.GemFire.Cache ICacheableKey 
the array of keys
Type: System.Collections.Generic Dictionary ICacheableKey, IGFSerializable 
output parameter that provides the map of keys to respective values; ignored if NULL; when this is NULL then at least the addToLocalCache parameter should be true and caching should be enabled for the region to get values into the region otherwise an IllegalArgumentException is thrown.
Type: System.Collections.Generic Dictionary ICacheableKey, Exception 
output parameter that provides the map of keys to any exceptions while obtaining the key; ignored if this is NULL
Type: System Boolean
true if the obtained values have also to be added to the local cache

GemStone.GemFire.Cache IllegalArgumentException If the array of keys is null or empty. Other invalid case is when the values parameter is NULL, and either addToLocalCache is false or caching is disabled for this region.
GemStone.GemFire.Cache CacheServerException If an exception is received from the Java cache server while processing the request.
GemStone.GemFire.Cache 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.
GemStone.GemFire.Cache RegionDestroyedException If region destroy is pending.
GemStone.GemFire.Cache TimeoutException if operation timed out.
GemStone.GemFire.Cache UnknownException For other exceptions.
See Also