IRegion TKey, TValue  ContainsKey Method (TKey)Pivotal GemFire .NET Client Documentation
Determines whether the IDictionary contains an element with the specified key.

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

bool ContainsKey(
	TKey key
)

Parameters

key
Type: TKey
The key to locate in the IDictionary.

Return Value

true if the IDictionary contains an element with the key; otherwise, false.

Implements

IDictionary TKey, TValue  ContainsKey(TKey)
Exceptions

ExceptionCondition
System ArgumentNullException key is a null reference
Remarks

For local region instance - This only searches in the local cache. For distributed region instance - checks to see if the key is present on the server.
See Also