ResourceBundle.GetObject(String) 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 an object for the given key from this resource bundle or one of its parents.
[Android.Runtime.Register("getObject", "(Ljava/lang/String;)Ljava/lang/Object;", "")]
public Java.Lang.Object? GetObject (string? key);
[<Android.Runtime.Register("getObject", "(Ljava/lang/String;)Ljava/lang/Object;", "")>]
override this.GetObject : string -> Java.Lang.Object
Parameters
- key
- String
the key for the desired object
Returns
the object for the given key
- Attributes
Exceptions
if the resource is not found.
Remarks
Gets an object for the given key from this resource bundle or one of its parents. This method first tries to obtain the object from this resource bundle using #handleGetObject(java.lang.String) handleGetObject
. If not successful, and the parent resource bundle is not null, it calls the parent's getObject
method. If still not successful, it throws a MissingResourceException.
Java documentation for java.util.ResourceBundle.getObject(java.lang.String)
.
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.