ContextNodeBaseCollection.Contains Method (ContextNodeBase)
Indicates whether or not the ContextNodeBaseCollection contains a specific ContextNodeBase object.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Syntax
'Declaration
Public Function Contains ( _
node As ContextNodeBase _
) As Boolean
'Usage
Dim instance As ContextNodeBaseCollection
Dim node As ContextNodeBase
Dim returnValue As Boolean
returnValue = instance.Contains(node)
public bool Contains(
ContextNodeBase node
)
public:
bool Contains(
ContextNodeBase^ node
)
public function Contains(
node : ContextNodeBase
) : boolean
Parameters
node
Type: System.Windows.Ink.AnalysisCore.ContextNodeBaseThe searched-for ContextNodeBase object.
Return Value
Type: System.Boolean
A Boolean value which indicates whether the ContextNodeBaseCollection contains a 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) Then
MessageBox.Show("The node is in the collection.")
End If
if (nodes.Contains(myNode))
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