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
パラメータ
- link
型 : Microsoft.Ink.ContextLink
検索する ContextLink オブジェクト。
戻り値
型 : 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