IGridMapPessimisticTx TKey, TValue  ContainsKey Method IBM WebSphere™ eXtreme Scale Client for .NET API Specification
IBM WebSphere™ eXtreme Scale Client for .NET Release 8.6.0.0 API Specification

Looks in the map for an entry that is associated with the specified the key. If an entry is found, true is returned. If an entry is not found, false is returned. Data grids do not support null key values, so a null key cannot be specified.

This API does not hold any locks. Use the Lock(TKey, LockMode) to test for a key and retain a lock.

Namespace: IBM.WebSphere.Caching.Map
Assembly: Client.Api (in Client.Api.dll) Version: 8.6.0.0
Syntax

Parameters

key
Type: TKey
Specifies the key to test in the map.

Return Value

Returns true if the key is found, false otherwise.
Exceptions

ExceptionCondition
System ArgumentException Occurs when a null key is specified.
IBM.WebSphere.Caching GridException Occurs when an error occurs during processing.
IBM.WebSphere.Caching.Security AccessControlException Occurs when the caller has insufficient authority to perform this operation.
Remarks

Specification details:
Required client permission:MapPermission.READ
Pessimistic locks acquired:LockMode.Shared
Pessimistic locks held:No
Cache tier:Progresses to all tiers until the key is found.
See Also