ContextNodeBaseCollection.Contains 方法 (ContextNodeBase)
指示 ContextNodeBaseCollection 是否包含特定的 ContextNodeBase 对象。
命名空间: System.Windows.Ink.AnalysisCore
程序集: IACore(在 IACore.dll 中)
语法
声明
Public Function Contains ( _
node As ContextNodeBase _
) As Boolean
用法
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 boolean Contains(
ContextNodeBase node
)
public function Contains(
node : ContextNodeBase
) : boolean
参数
- node
类型:System.Windows.Ink.AnalysisCore.ContextNodeBase
要搜索的 ContextNodeBase 对象。
返回值
类型:System.Boolean
一个布尔值,指示 ContextNodeBaseCollection 是否包含特定的 ContextNodeBase 对象。
示例
下面的示例演示如何检查特定的 ContextNodeBase (myNode) 是否包含在名为 nodes 的 ContextNodeBaseCollection 中。
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.");
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0