Compartilhar via


FilteredObservableCollection<T>.Contains Method

Definition

Overloads

Contains(Object)

Determines whether the collection contains the specified object.

Contains(T)

Determines whether the collection contains the specified item.

Contains(Object)

Determines whether the collection contains the specified object.

public:
 virtual bool Contains(System::Object ^ value);
public:
 bool Contains(Platform::Object ^ value);
bool Contains(winrt::Windows::Foundation::IInspectable const & value);
public bool Contains (object value);
abstract member Contains : obj -> bool
override this.Contains : obj -> bool
Public Function Contains (value As Object) As Boolean

Parameters

value
Object

The object.

Returns

true if the collection contains the item, otherwise false.

Implements

Applies to

Contains(T)

Determines whether the collection contains the specified item.

public:
 virtual bool Contains(T item);
public:
 bool Contains(T item);
bool Contains(T item);
public bool Contains (T item);
abstract member Contains : 'T -> bool
override this.Contains : 'T -> bool
Public Function Contains (item As T) As Boolean

Parameters

item
T

The item.

Returns

true if the item is in the collection, otherwise false.

Implements

Remarks

If the collection has a filter, this method queries the collection, otherwise it queries the underlying list.

Applies to