Determines if a specific object is in the collection.
Checks for the specified CommandUIItem instance if it exists in the collection.
Visual Basic (Declaration) | |
---|---|
Public Function Contains( _ ByVal value As CommandUIItem _ ) As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool Contains( CommandUIItem value ) |
Parameters
- value
- Object to be searched for in the collection.
The CommandUIItem to check.
Return Value
A boolean value that indicates whether the specified object is a member of the collection.True if collection contains this CommandUIItem
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family