EqtBaseCollection<T>.Contains Method

Returns a value that indicates whether the provided item is already in the collection.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

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

Parameters

  • item
    Type: T

    An item whose type matches the generic type that was declared when the class was created.

Return Value

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

Implements

ICollection.Contains(UTP)

.NET Framework Security

See Also

Reference

EqtBaseCollection<T> Class

Microsoft.VisualStudio.TestTools.Common Namespace