Click or drag to resize

PersistentDictionary<TKey, TValue>.Remove Method

Removes an item with the specified key from the dictionary. This method does not modify the instance on which it is called but instead returns a new instance with the element removed. If the key does not exist in the dictionary, this method returns the instance on which it is called.

Namespace:  AGI.Foundation.Infrastructure.Threading
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public abstract PersistentDictionary<TKey, TValue> Remove(
	TKey key
)

Parameters

key
Type: TKey
The key to remove from the dictionary.

Return Value

Type: PersistentDictionary<TKey, TValue>
A new instance without the specified key, or the same instance on which it is called if the key does not exist in the dictionary.
See Also