Remove Method
Removes the element with the specified key from the IDictionary(TKey, TValue).
Definition
Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public bool Remove(
TKey key
)
Public Function Remove (
key As TKey
) As Boolean
abstract Remove :
key : 'TKey -> bool
override Remove :
key : 'TKey -> bool
Parameters
- TKey
- The key of the element to remove.
Return Value
Boolean
true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original IDictionary(TKey, TValue).
Implements
IDictionary(TKey, TValue).Remove(TKey)Exceptions
ArgumentNullException | key is null. |
NotSupportedException | The IDictionary(TKey, TValue) is read-only. |
See Also
Reference
AvaloniaDictionary(TKey, TValue) Class
Avalonia.Collections Namespace