| Visual Basic (Declaration) | |
|---|---|
Public Function Contains( _ ByVal obj As Object _ ) As Boolean | |
| C# | |
|---|---|
public bool Contains( object obj ) | |
Parameters
- obj
Return Value
True if the object is contained within the collection.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.
