ConcurrentTokenizedPriorityQueueTKey, TValue, TTokenTryAdd Method |
Tries to add the key/value pair associated with the provided token to the queue. The queue must not be configured to generate tokens by itself.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public bool TryAdd(
TToken token,
TKey key,
TValue value
)
Parameters
- token TToken
- The token.
- key TKey
- The key.
- value TValue
- The value.
Return Value
BooleanTrue if the key/value pair could be added to the queue. False if the token already exists in the queue.
Exceptions See Also