Dela via


DataCollection<TKey,TValue>.Remove Method

Definition

Overloads

Remove(KeyValuePair<TKey,TValue>)

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

Remove(TKey)

Removes the first occurrence of a specific object from the DataCollection<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>

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

Returns

true if the object was found and removed; otherwise, false.

Applies to

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

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

Returns

true if the object was found and removed; otherwise, false.

Applies to