SortedList.System.Collections.Generic.ICollection>.Remove メソッド
アセンブリ: System (system.dll 内)

Private Function System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove ( _ keyValuePair As KeyValuePair(Of TKey, TValue) _ ) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Remove
Dim instance As SortedList(Of TKey, TValue) Dim keyValuePair As KeyValuePair(Of TKey, TValue) Dim returnValue As Boolean returnValue = CType(instance, ICollection(Of KeyValuePair(Of TKey, TValue))).Remove(keyValuePair)
private: virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove ( KeyValuePair<TKey, TValue> keyValuePair ) sealed = ICollection<KeyValuePair<TKey, TValue>>::Remove
- keyValuePair
ICollection から削除する KeyValuePair。
keyValuePair が ICollection から正常に削除された場合は true。それ以外の場合は false。このメソッドは、keyValuePair が元の ICollection に見つからなかった場合にも false を返します。

このメソッドは、System.Collections.Generic.KeyValuePair の既定の比較演算子 Comparer.Default を使用して等しいかどうかを判断します。
このメソッドは、バイナリ サーチを実行しますが、空いている位置を埋めるために要素の位置が上がるため、このメソッドは O(n) 操作です。ここで、n は、Count です。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- SortedList.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove メソッドのページへのリンク