Share via


ContextNodeBaseCollection.Contains Method (Guid)

A Boolean value which indicates whether or not the ContextNodeBaseCollection contains a specific ContextNodeBase object, based on its identifier.

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

Syntax

'Declaration
Public Function Contains ( _
    nodeId As Guid _
) As Boolean
'Usage
Dim instance As ContextNodeBaseCollection 
Dim nodeId As Guid 
Dim returnValue As Boolean 

returnValue = instance.Contains(nodeId)
public bool Contains(
    Guid nodeId
)
public:
bool Contains(
    Guid nodeId
)
public function Contains(
    nodeId : Guid
) : boolean

Parameters

Return Value

Type: System.Boolean
A Boolean value which indicates whether the ContextNodeBaseCollection contains the specific ContextNodeBase object.

Examples

The following example shows how to check whether or not a specific ContextNodeBase, myNode, is contained in a ContextNodeBaseCollection named nodes.

If nodes.Contains(myNode.Id) Then
    MessageBox.Show("The node is in the collection.")
End If
          if (nodes.Contains(myNode.Id))
                MessageBox.Show("The node 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

ContextNodeBaseCollection Class

ContextNodeBaseCollection Members

Contains Overload

System.Windows.Ink.AnalysisCore Namespace