Click or drag to resize

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.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public bool TryAdd(
	TToken token,
	TKey key,
	TValue value
)

Parameters

token  TToken
The token.
key  TKey
The key.
value  TValue
The value.

Return Value

Boolean
True if the key/value pair could be added to the queue. False if the token already exists in the queue.
Exceptions
ExceptionCondition
InvalidOperationExceptionThis queue is generating tokens by itself. Use Enqueue(key, value) instead!
See Also