PowerTools PlusPak for Windows Forms 8.0J
ContainsKey メソッド (BaseKeyCollection)

BaseKeyCollectionコレクション内で検索するキー。
BaseKeyCollectionコレクション内に特定のキーがあるかどうかを取得します。
構文
Public Overridable Function ContainsKey( _
   ByVal key As String _
) As Boolean
public virtual bool ContainsKey( 
   string key
)

パラメータ

key
BaseKeyCollectionコレクション内で検索するキー。

戻り値の型

指定したキーを持つ要素がBaseKeyCollectionコレクションに含まれる場合はtrue、それ以外の場合はfalse。
例外
例外解説
System.ArgumentNullExceptionkey は null に設定できません。
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

BaseKeyCollection クラス
BaseKeyCollection メンバ

Send Feedback