次の方法で共有


ContextNodeBaseCollection.Contains メソッド (Guid)

識別子に基づいて、特定の ContextNodeBase オブジェクトが ContextNodeBaseCollection に格納されているかどうかを示すブール値。

名前空間 :  System.Windows.Ink.AnalysisCore
アセンブリ :  IACore (IACore.dll 内)

構文

'宣言
Public Function Contains ( _
    nodeId As Guid _
) As Boolean
'使用
Dim instance As ContextNodeBaseCollection
Dim nodeId As Guid
Dim returnValue As Boolean

returnValue = instance.Contains(nodeId)
public bool Contains(
    Guid nodeId
)
public:
bool Contains(
    Guid nodeId
)
public boolean Contains(
    Guid nodeId
)
public function Contains(
    nodeId : Guid
) : boolean

パラメータ

戻り値

型 : System.Boolean
特定の ContextNodeBase オブジェクトが、ContextNodeBaseCollection に格納されているかどうかを示すブール値。

次の例では、myNode という名前の特定の ContextNodeBase が、nodes という名前の ContextNodeBaseCollection に格納されているかどうかを確認します。

If nodes.Contains(myNode.Id) Then
    MessageBox.Show("The node is in the collection.")
End If
            if (nodes.Contains(myNode.Id))
                MessageBox.Show("The node is in the collection.");

プラットフォーム

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

ContextNodeBaseCollection クラス

ContextNodeBaseCollection メンバ

Contains オーバーロード

System.Windows.Ink.AnalysisCore 名前空間