NamedMapTKey, TValueTryAdd Method

ScaleOut Software NamedCache API

Namespace:  Soss.Client.Concurrent
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.2.0.0
Syntax

public bool TryAdd(
	TKey key,
	TValue value
)

Parameters

key
Type: TKey
The key of the element to add.
value
Type: TValue
The value of the element to add. The value can be a null reference (Nothing in Visual Basic) for reference types.

Return Value

Type: Boolean
true if the key/value pair was added to the NamedMapTKey, TValue successfully. If the key already exists, this method returns false.
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown if key is a null reference.
See Also

Reference