Version

Contains Method (DisposableObjectCollectionBase)

Returns true if the collection contains the instance specified.
Syntax
'Declaration
 
Public Function Contains( _
   ByVal obj As Object _
) As Boolean
public bool Contains( 
   object obj
)

Parameters

obj

Return Value

True if the object is contained within the collection.
Remarks

Note: This method checks the collection for the specific instance of the object that is provided. It does not check the collection for an object with a particular key. If this collection is a KeyedSubObjectsCollectionBase then you can use the KeyedSubObjectsCollectionBase.Exists method to see if an item exists in the collection with the specified key.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also