Export (0) Print
Expand All

SortedDictionary.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove Method 

Removes the first occurrence of the specified element from the ICollection.

Namespace: System.Collections.Generic
Assembly: System (in system.dll)

bool ICollection<KeyValuePair<TKey,TValue>>.Remove (
	KeyValuePair<TKey,TValue> keyValuePair
)
Not applicable.

Parameters

keyValuePair

The KeyValuePair structure to remove from the ICollection.

Return Value

true if keyValuePair was successfully removed from the ICollection; otherwise, false. This method also returns false if keyValuePair was not found in the ICollection.

This method determines equality by first using the Comparer property for the key and then using EqualityComparer.Default for the value.

This method is an O(log n) operation.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft