Contains(TItem) Method
See Also 
SourceCode.Framework Namespace > PersistableObjectCollectionBase<TParent,TItem> Class > Contains Method : Contains(TItem) Method



item

Glossary Item Box

Determines whether the item is in the collection.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function Contains( _
   ByVal item As TItem _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PersistableObjectCollectionBase(Of TParent,TItem)
Dim item As TItem
Dim value As Boolean
 
value = instance.Contains(item)
C# 
public virtual bool Contains( 
   TItem item
)
C++/CLI 
public:
virtual bool Contains( 
   TItem^ item
) 

Parameters

item

Requirements

Target Platforms: 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