ConditionalWeakTable<TKey,TValue>.Remove(TKey) ConditionalWeakTable<TKey,TValue>.Remove(TKey) ConditionalWeakTable<TKey,TValue>.Remove(TKey) ConditionalWeakTable<TKey,TValue>.Remove(TKey) Method

Definition

Removes a key and its value from the table.

public:
 bool Remove(TKey key);
public bool Remove (TKey key);
member this.Remove : 'Key -> bool
Public Function Remove (key As TKey) As Boolean

Parameters

key
TKey TKey TKey TKey

The key to remove.

Returns

true if the key is found and removed; otherwise, false.

Exceptions

Remarks

If the key is garbage-collected during this operation, the method does not raise an exception and the return value is undefined.

Security

SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to