System::Collections::Generic::IDictionary::TryGetValue メソッド

IDictionary::TryGetValue method

値を検索し、見つかった場合は取得します。

virtual bool System::Collections::Generic::IDictionary<TKey, TValue>::TryGetValue(const TKey &key, TValue &value) const =0
パラメーター説明
キーconst TKey&検索するキー。
valueTValue&取得した値を格納する参照。

ReturnValue

値が見つかり取得できた場合は true、そうでない場合は false。

参照