ResourceBundle.Control.NewBundle(String, Locale, String, ClassLoader, Boolean) ResourceBundle.Control.NewBundle(String, Locale, String, ClassLoader, Boolean) Method

Definition

Returns a new ResourceBundle.

[Android.Runtime.Register("newBundle", "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/util/ResourceBundle;", "GetNewBundle_Ljava_lang_String_Ljava_util_Locale_Ljava_lang_String_Ljava_lang_ClassLoader_ZHandler")]
public virtual Java.Util.ResourceBundle NewBundle (string baseName, Java.Util.Locale locale, string format, Java.Lang.ClassLoader loader, bool reload);
abstract member NewBundle : string * Java.Util.Locale * string * Java.Lang.ClassLoader * bool -> Java.Util.ResourceBundle
override this.NewBundle : string * Java.Util.Locale * string * Java.Lang.ClassLoader * bool -> Java.Util.ResourceBundle

Parameters

baseName
String String

the base name to use

locale
Locale Locale

the given locale

format
String String

the format, default is "java.class" or "java.properties"

loader
ClassLoader ClassLoader

the classloader to use

reload
Boolean Boolean

whether to reload the resource

Returns

Exceptions

if we can not access resources

if we can not instantiate a resource class

if other I/O exception happens

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.

Applies to