DataCollection<TKey,TValue>.Remove DataCollection<TKey,TValue>.Remove DataCollection<TKey,TValue>.Remove DataCollection<TKey,TValue>.Remove Method

Definition

Overloads

Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>)

Removes the first occurrence of a specific object from the DataCollection<TKey,TValue>.

Remove(TKey) Remove(TKey) Remove(TKey) Remove(TKey)

Removes the first occurrence of a specific object from the DataCollection<TKey,TValue>.

Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>)

Removes the first occurrence of a specific object from the DataCollection<TKey,TValue>.

public:
 bool Remove(System::Collections::Generic::KeyValuePair<TKey, TValue> item);
public bool Remove (System.Collections.Generic.KeyValuePair<TKey,TValue> item);
member this.Remove : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Public Function Remove (item As KeyValuePair(Of TKey, TValue)) As Boolean

Parameters

item
KeyValuePair<TKey,TValue>

Type: KeyValuePair<TKey, TValue>. The object to remove from the DataCollection<TKey,TValue>.

Returns

Type: Booleantrue if the object was found and removed; otherwise, false.

Remove(TKey) Remove(TKey) Remove(TKey) Remove(TKey)

Removes the first occurrence of a specific object from the DataCollection<TKey,TValue>.

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

Type: TKey. The object to remove from the DataCollection<TKey,TValue>.

Returns

Type: Booleantrue if the object was found and removed; otherwise, false.

Applies to