Determines whether or not the specified item is contained in the collection.
Syntax
Visual Basic (Declaration) |
|
Public Overridable Function Contains( _
ByVal item As T _
) As Boolean |
Visual Basic (Usage) |
Copy Code |
Dim instance As RasterCollection(Of T)
Dim item As T
Dim value As Boolean
value = instance.Contains(item)
|
C# |
|
public virtual bool Contains(
T item
) |
C++/CLI |
|
public:
virtual bool Contains(
T item
) |
Parameters
- item
- Object to test.
Return Value
true if the item is found in the collection, false otherwise.
Example
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also