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

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

SortedList.System.Collections.Generic.ICollection>.Contains メソッド

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

ICollection に特定の要素が格納されているかどうかを判断します。

名前空間: System.Collections.Generic
アセンブリ: System (system.dll 内)
構文構文

Private Function System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains
 ( _
    keyValuePair As KeyValuePair(Of TKey, TValue)
 _
) As Boolean Implements
 ICollection(Of KeyValuePair(Of TKey, TValue)).Contains
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))).Contains(keyValuePair)
bool ICollection<KeyValuePair<TKey,TValue>>.Contains
 (
    KeyValuePair<TKey,TValue> keyValuePair
)
private:
virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains
 (
    KeyValuePair<TKey, TValue> keyValuePair
) sealed = ICollection<KeyValuePair<TKey, TValue>>::Contains

パラメータ

keyValuePair

ICollection 内で検索される KeyValuePair。

戻り値
keyValuePair が ICollection に存在する場合は true。それ以外の場合は false。

解説解説

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SortedList ジェネリック クラス
SortedList メンバ
System.Collections.Generic 名前空間
SortedList.ContainsKey メソッド
SortedList.ContainsValue メソッド
KeyValuePair ジェネリック構造体



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



SortedList.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS