ThreadSafeDictionaryTKey, TValueTryRemove(TKey, TValue) Method

Tries to remove the item from the ThreadSafeDictionaryTKey, TValue that has the specified key and value.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
[CLSCompliantAttribute(false)]
public bool TryRemove(
	TKey key,
	TValue value
)

Parameters

key  TKey
The key of the item to remove.
value  TValue
The value of the item to remove.

Return Value

Boolean
if the element is successfully removed; otherwise, .

Exceptions

See Also