Share via


ContextLinkBaseCollection.Contains Method

Indicates whether the ContextLinkBaseCollection contains a specific ContextLinkBase object.

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 function Contains(
    link : ContextLinkBase
) : boolean

Parameters

Return Value

Type: System.Boolean
Whether or not ContextLinkBaseCollection contains the specific ContextLinkBase object.

Examples

The following example shows how to check whether or not a specific ContextLinkBase named myLink is contained in a ContextLinkBaseCollection named links.

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.");

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextLinkBaseCollection Class

ContextLinkBaseCollection Members

System.Windows.Ink.AnalysisCore Namespace