Share via


ContextLinkCollection.Contains Method

Indicates whether the ContextLinkCollection contains a specific ContextLink object.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Syntax

'Declaration
Public Function Contains ( _
    link As ContextLink _
) As Boolean
'Usage
Dim instance As ContextLinkCollection 
Dim link As ContextLink 
Dim returnValue As Boolean 

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

Parameters

Return Value

Type: System.Boolean
Whether the ContextLinkCollection contains the specific ContextLink object.

Examples

The following example shows how to determine whether a specific ContextLink, myLink, is contained in a ContextLinkCollection, 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 Server 2008 R2, Windows Server 2008

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

ContextLinkCollection Class

ContextLinkCollection Members

Microsoft.Ink Namespace