다음을 통해 공유


Dictionary.Get(Object) Method

Definition

Returns the value to which the key is mapped in this dictionary.

[Android.Runtime.Register("get", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetGet_Ljava_lang_Object_Handler")]
public abstract Java.Lang.Object? Get (Java.Lang.Object? key);
[<Android.Runtime.Register("get", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetGet_Ljava_lang_Object_Handler")>]
abstract member Get : Java.Lang.Object -> Java.Lang.Object

Parameters

key
Object

a key in this dictionary. null if the key is not mapped to any value in this dictionary.

Returns

the value to which the key is mapped in this dictionary;

Attributes

Remarks

Returns the value to which the key is mapped in this dictionary. The general contract for the isEmpty method is that if this dictionary contains an entry for the specified key, the associated value is returned; otherwise, null is returned.

Java documentation for java.util.Dictionary.get(java.lang.Object).

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.

Applies to