Muokkaa

Jaa


OrderedDictionary<TKey,TValue>.Remove Method

Definition

Overloads

Remove(TKey)

Removes the element with the specified key from the IDictionary<TKey,TValue>.

Remove(TKey, TValue)

Removes the value with the specified key from the OrderedDictionary<TKey,TValue> and copies the element to the value parameter.

Remove(TKey)

Removes the element with the specified key from the IDictionary<TKey,TValue>.

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

Parameters

key
TKey

The key of the element to remove.

Returns

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

Applies to

Remove(TKey, TValue)

Removes the value with the specified key from the OrderedDictionary<TKey,TValue> and copies the element to the value parameter.

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

The key of the element to remove.

value
TValue

The removed element.

Returns

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

Applies to