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