Click or drag to resize
IRegionTKey, TValueContainsKey Method
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: 9.0.6.18
Syntax
bool ContainsKey(
	TKey key
)

Parameters

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

Return Value

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

Implements

IDictionaryTKey, TValueContainsKey(TKey)
Exceptions
ExceptionCondition
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