表示 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 物件。
範例
下列範例說明如何檢查 ContextLinkBaseCollection (名為 links) 中是否包含特定 ContextLinkBase (名為 myLink)。
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