TryGetValue()

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

Looks for value and retreives it if found.

virtual bool System::Collections::Generic::IDictionary<TKey, TValue>::TryGetValue(const TKey &key, TValue &value) const =0

Arguments

ParameterTypeDescription
keyconst TKey&Key to look for.
valueTValue&Reference to store retreived value into.

Return Value

True if value was found and retreived, false otherwise.

See Also