PersistentDictionaryTKey, TValueRemove 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
)
Public MustOverride Function Remove (
key As TKey
) As PersistentDictionary(Of TKey, TValue)
public:
virtual PersistentDictionary<TKey, TValue>^ Remove(
TKey key
) abstract
abstract Remove :
key : 'TKey -> PersistentDictionary<'TKey, 'TValue>
Parameters
- key
- Type: TKey
The key to remove from the dictionary.
Return Value
Type:
PersistentDictionaryTKey,
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