Share via


FilteredObservableCollection<T>.Contains Method (T)

Determines whether the collection contains the specified item.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'Declaration
Public Function Contains ( _
    item As T _
) As Boolean
public bool Contains(
    T item
)
public:
virtual bool Contains(
    T item
) sealed
abstract Contains : 
        item:'T -> bool 
override Contains : 
        item:'T -> bool 
public final function Contains(
    item : T
) : boolean

Parameters

  • item
    Type: T
    The item.

Return Value

Type: System.Boolean
true if the item is in the collection, otherwise false.

Implements

ICollection<T>.Contains(T)

Remarks

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

.NET Framework Security

See Also

Reference

FilteredObservableCollection<T> Class

Contains Overload

Microsoft.VisualStudio.Language.Intellisense Namespace