次の方法で共有


ContextLinkBaseCollection.Contains メソッド

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

パラメータ

戻り値

型 : 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

参照

参照

ContextLinkBaseCollection クラス

ContextLinkBaseCollection メンバ

System.Windows.Ink.AnalysisCore 名前空間