Edit

Share via


ConditionalWeakTable<TKey,TValue>.Remove Method

Definition

Overloads

Remove(TKey)

Removes a key and its value from the table.

Remove(TKey, TValue)

Remove(TKey)

Source:
ConditionalWeakTable.cs
Source:
ConditionalWeakTable.cs
Source:
ConditionalWeakTable.cs

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

The key to remove.

Returns

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

Exceptions

key is null.

Remarks

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

Applies to

Remove(TKey, TValue)

public:
 bool Remove(TKey key, [Runtime::InteropServices::Out] TValue % value);
public bool Remove(TKey key, out TValue value);
member this.Remove : 'Key * 'Value -> bool
Public Function Remove (key As TKey, ByRef value As TValue) As Boolean

Parameters

key
TKey
value
TValue

Returns

Applies to