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

Private Sub System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add ( _ keyValuePair As KeyValuePair(Of TKey, TValue) _ ) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Add
Dim instance As SortedList(Of TKey, TValue) Dim keyValuePair As KeyValuePair(Of TKey, TValue) CType(instance, ICollection(Of KeyValuePair(Of TKey, TValue))).Add(keyValuePair)
private: virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add ( KeyValuePair<TKey, TValue> keyValuePair ) sealed = ICollection<KeyValuePair<TKey, TValue>>::Add
- keyValuePair
ICollection に追加する KeyValuePair。

このメソッドは、並べ替えられていないデータに対する O(n) 操作です。ここで、n は Count です。新しい要素がリストの末尾に追加される場合は、O(log n) 操作です。挿入によってサイズの変更が発生する場合、操作は O(n) になります。

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>>.Add メソッドのページへのリンク