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