SynchronizedReadOnlyCollection<T>.IList.Contains(Object) メソッド
定義
指定されたオブジェクトがコレクション内に存在するかどうかを確認します。Checks whether the specified object exists in the collection.
virtual bool System.Collections.IList.Contains(System::Object ^ value) = System::Collections::IList::Contains;
bool IList.Contains (object value);
abstract member System.Collections.IList.Contains : obj -> bool
override this.System.Collections.IList.Contains : obj -> bool
Function Contains (value As Object) As Boolean Implements IList.Contains
パラメーター
- value
- Object
コレクション内で検索するオブジェクト。The object to locate in the collection.
戻り値
コレクション内にそのオブジェクトがある場合は true
、それ以外の場合は false
。true
if the object is located in the collection; otherwise, false
.
実装
例外
value
は、コレクションに格納されている型のオブジェクトではありません。value
is not an object of the type contained in the collection.