ContextLinkCollection.Contains 方法

指示 ContextLinkCollection 是否包含特定的 ContextLink 对象。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink.Analysis(在 Microsoft.Ink.Analysis.dll 中)

语法

声明
Public Function Contains ( _
    link As ContextLink _
) As Boolean
用法
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 boolean Contains(
    ContextLink link
)
public function Contains(
    link : ContextLink
) : boolean

参数

返回值

类型:System.Boolean
一个值,指示 ContextLinkCollection 是否包含特定的 ContextLink 对象。

示例

下面的示例演示如何确定特定的 ContextLink (myLink) 是否包含在 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.");
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

ContextLinkCollection 类

ContextLinkCollection 成员

Microsoft.Ink 命名空间