Click or drag to resize

ConcurrentTokenizedPriorityQueueTKey, TValue, TTokenTryIncreaseKey Method

Tries to change the key associated with the provided token. The new key value has to be greater than the existing one; otherwise an exception is thrown.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public bool TryIncreaseKey(
	TToken token,
	TKey key
)

Parameters

token  TToken
The token.
key  TKey
The new key.

Return Value

Boolean
True if the item associated with the token still existed in the queue; otherwise false.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe new key was equal to or less than the existing one.
See Also