JavaDictionary<K,V>.TryGetValue(K, V) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the map's result for a key, then checks whether the key is present.
public bool TryGetValue(K key, out V value);
abstract member TryGetValue : 'K * 'V -> bool
override this.TryGetValue : 'K * 'V -> bool
Parameters
- key
- K
The key to look up.
- value
- V
Receives the converted result of the Java map's get method.
Returns
The result of checking the key with the Java map's containsKey method after the value is retrieved.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.