System::Collections::Generic::IDictionary::GetValueOrDefault طريقة

IDictionary::GetValueOrDefault(const TKey&) const method

يرجع القيمة إذا وُجدت؛ أو Value() خلاف ذلك.

virtual TValue System::Collections::Generic::IDictionary<TKey, TValue>::GetValueOrDefault(const TKey &key) const

انظر أيضًا

IDictionary::GetValueOrDefault(const TKey&, const TValue&) const method

يرجع القيمة إذا وُجدت؛ أو defaultValue خلاف ذلك.

virtual TValue System::Collections::Generic::IDictionary<TKey, TValue>::GetValueOrDefault(const TKey &key, const TValue &defaultValue) const

انظر أيضًا