Freigeben über


CheckedListBox.CheckedItemCollection.Contains-Methode

Bestimmt, ob das angegebene Element in der Auflistung enthalten ist.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
Public Function Contains ( _
    item As Object _
) As Boolean
'Usage
Dim instance As CheckedItemCollection
Dim item As Object
Dim returnValue As Boolean

returnValue = instance.Contains(item)
public bool Contains (
    Object item
)
public:
virtual bool Contains (
    Object^ item
) sealed
public final boolean Contains (
    Object item
)
public final function Contains (
    item : Object
) : boolean

Parameter

  • item
    Ein Objekt aus der Elementauflistung.

Rückgabewert

true, wenn das Element in der Auflistung vorhanden ist, andernfalls false.

Hinweise

Mit dieser Methode wird bestimmt, ob ein Objekt aus der Items-Auflistung in der CheckedItems-Auflistung vorhanden ist.

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

CheckedListBox.CheckedItemCollection-Klasse
CheckedListBox.CheckedItemCollection-Member
System.Windows.Forms-Namespace