Collection<T>.IList.Contains(Object) Méthode
Définition
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
Paramètres
Retours
true
si le Object se trouve dans le IList ; sinon, false
.true
if the Object is found in the IList; otherwise, false
.
Implémente
Exceptions
value
est d’un type qui ne peut pas être assigné à IList.value
is of a type that is not assignable to the IList.
Remarques
Cette méthode détermine l’égalité en déterminant d’abord si value
est de type T
(ou null), puis en appelant Contains .This method determines equality by first determining whether value
is of type T
(or null) and then calling Contains.
Cette méthode est une opération O ( n
), où n
est Count .This method is an O(n
) operation, where n
is Count.