Freigeben über


ContextLinkBaseCollection.Contains-Methode

Gibt an, ob die ContextLinkBaseCollection ein bestimmtes ContextLinkBase-Objekt enthält.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function Contains ( _
    link As ContextLinkBase _
) As Boolean
'Usage
Dim instance As ContextLinkBaseCollection
Dim link As ContextLinkBase
Dim returnValue As Boolean

returnValue = instance.Contains(link)
public bool Contains(
    ContextLinkBase link
)
public:
bool Contains(
    ContextLinkBase^ link
)
public boolean Contains(
    ContextLinkBase link
)
public function Contains(
    link : ContextLinkBase
) : boolean

Parameter

Rückgabewert

Typ: System.Boolean
Gibt an, ob ContextLinkBaseCollection das bestimmte ContextLinkBase-Objekt enthält.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie Sie überprüfen, ob ein bestimmter ContextLinkBase mit dem Namen myLink in einer ContextLinkBaseCollection mit dem Namen links enthalten ist.

If links.Contains(myLink) Then
    MessageBox.Show("The link is in the collection.")
End If
if (links.Contains(myLink))
    MessageBox.Show("The link is in the collection.");

Plattformen

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.

Versionsinformationen

.NET Framework

Unterstützt in: 3.0

Siehe auch

Referenz

ContextLinkBaseCollection-Klasse

ContextLinkBaseCollection-Member

System.Windows.Ink.AnalysisCore-Namespace