[This is preliminary documentation and is subject to change.]
Determines whether the IList contains a specific value.
| C# | Visual Basic | Visual C++ |
protected bool Contains( Object value )
Protected Function Contains ( _ value As Object _ ) As Boolean
protected: bool Contains( Object^ value )
- value (Object)
- The item to locate in the IList.
trueTruetrue if the item is found in the IList; otherwise, falseFalsefalse.
Method access is protected. Only to be accessed by subclass.
| Exception | Condition |
|---|---|
| ArgumentNullException | Argument is a nullNothingnullptr reference. |