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

Adds the key-value pair to the data grid.

The key must not exist before executing this method.

A DuplicateKeyException is thrown when the duplicate key is discovered.

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 be inserted in the data grid.
value
Type: TValue
Specifies the value to be inserted in the data grid.

Return Value

Exceptions

ExceptionCondition
System ArgumentException Occurs when a null key is specified.
IBM.WebSphere.Caching.Map DuplicateKeyException Occurs when the key exists.
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.INSERT
Cache tier:Applied to all tiers during commit.
See Also