BitmapEffectCollection.Contains(BitmapEffect) Méthode
Définition
Remarque : Cette API est maintenant obsolète.Note: This API is now obsolete. L'alternative non obsolète est Effect.The non-obsolete alternative is Effect. Indique si la collection contient l’BitmapEffect spécifié.Indicates whether the collection contains the specified BitmapEffect.
public:
virtual bool Contains(System::Windows::Media::Effects::BitmapEffect ^ value);
public bool Contains (System.Windows.Media.Effects.BitmapEffect value);
abstract member Contains : System.Windows.Media.Effects.BitmapEffect -> bool
override this.Contains : System.Windows.Media.Effects.BitmapEffect -> bool
Public Function Contains (value As BitmapEffect) As Boolean
Paramètres
- value
- BitmapEffect
Effet bitmap à localiser dans la collection.The bitmap effect to locate in the collection.
Retours
true
si la collection contient la valeur ; sinon, false
.true
if the collection contains value; otherwise, false
.
Implémente
Remarques
Cette méthode effectue une recherche linéaire; par conséquent, la durée d’exécution moyenne est Countproportionnelle à.This method performs a linear search; therefore, the average execution time is proportional to Count. Autrement dit, cette méthode est une opération O (n), où n est Count.That is, this method is an O(n) operation, where n is Count.
Cette méthode détermine l’égalité en Object.Equalsappelant.This method determines equality by calling Object.Equals.