SortedDictionary.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SortedDictionary.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove メソッドの意味・解説 

SortedDictionary.System.Collections.Generic.ICollection>.Remove メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

ICollection 内で最初に見つかった指定要素削除します

名前空間: System.Collections.Generic
アセンブリ: 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 SortedDictionary(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)
bool ICollection<KeyValuePair<TKey,TValue>>.Remove
 (
    KeyValuePair<TKey,TValue> 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 構造体

戻り値
keyValuePairICollection から正常に削除され場合trueそれ以外場合false。このメソッドは、keyValuePairICollection見つからなかった場合にも false返します

解説解説

このメソッドは、最初にキーの Comparer プロパティ使用し次に値の EqualityComparer.Default を使用して等しかどうか確認します

このメソッドは O(log n) 操作です。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SortedDictionary ジェネリック クラス
SortedDictionary メンバ
System.Collections.Generic 名前空間
ICollection.IsReadOnly プロパティ



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

SortedDictionary.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SortedDictionary.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS