ResourceBundle.GetBundle ResourceBundle.GetBundle Method

Definition

Overloads

GetBundle(String) GetBundle(String)

Finds the named resource bundle for the default Locale and the caller's ClassLoader.

GetBundle(String, Locale) GetBundle(String, Locale)

Finds the named ResourceBundle for the specified Locale and the caller ClassLoader.

GetBundle(String, ResourceBundle+Control) GetBundle(String, ResourceBundle+Control)

Finds the named resource bundle for the specified base name and control.

GetBundle(String, Locale, ClassLoader) GetBundle(String, Locale, ClassLoader)

Finds the named resource bundle for the specified Locale and ClassLoader.

GetBundle(String, Locale, ResourceBundle+Control) GetBundle(String, Locale, ResourceBundle+Control)

Finds the named resource bundle for the specified base name and control.

GetBundle(String, Locale, ClassLoader, ResourceBundle+Control) GetBundle(String, Locale, ClassLoader, ResourceBundle+Control)

Finds the named resource bundle for the specified base name and control.

GetBundle(String) GetBundle(String)

Finds the named resource bundle for the default Locale and the caller's ClassLoader.

[Android.Runtime.Register("getBundle", "(Ljava/lang/String;)Ljava/util/ResourceBundle;", "")]
public static Java.Util.ResourceBundle GetBundle (string baseName);
static member GetBundle : string -> Java.Util.ResourceBundle

Parameters

baseName
String String

Returns

Exceptions

if the ResourceBundle cannot be found.

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.

GetBundle(String, Locale) GetBundle(String, Locale)

Finds the named ResourceBundle for the specified Locale and the caller ClassLoader.

[Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;", "")]
public static Java.Util.ResourceBundle GetBundle (string baseName, Java.Util.Locale locale);
static member GetBundle : string * Java.Util.Locale -> Java.Util.ResourceBundle

Parameters

baseName
String String
locale
Locale Locale

the Locale.

Returns

Exceptions

if the resource bundle cannot be found.

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.

GetBundle(String, ResourceBundle+Control) GetBundle(String, ResourceBundle+Control)

Finds the named resource bundle for the specified base name and control.

[Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/ResourceBundle$Control;)Ljava/util/ResourceBundle;", "", ApiSince=9)]
public static Java.Util.ResourceBundle GetBundle (string baseName, Java.Util.ResourceBundle.Control control);
static member GetBundle : string * Java.Util.ResourceBundle.Control -> Java.Util.ResourceBundle

Parameters

baseName
String String

the base name of a resource bundle

control
ResourceBundle.Control ResourceBundle.Control

the control that control the access sequence

Returns

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.

GetBundle(String, Locale, ClassLoader) GetBundle(String, Locale, ClassLoader)

Finds the named resource bundle for the specified Locale and ClassLoader.

[Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;)Ljava/util/ResourceBundle;", "")]
public static Java.Util.ResourceBundle GetBundle (string baseName, Java.Util.Locale locale, Java.Lang.ClassLoader loader);
static member GetBundle : string * Java.Util.Locale * Java.Lang.ClassLoader -> Java.Util.ResourceBundle

Parameters

baseName
String String
locale
Locale Locale

the Locale.

loader
ClassLoader ClassLoader

the ClassLoader to use.

Returns

Exceptions

if the ResourceBundle cannot be found.

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.

GetBundle(String, Locale, ResourceBundle+Control) GetBundle(String, Locale, ResourceBundle+Control)

Finds the named resource bundle for the specified base name and control.

[Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;Ljava/util/ResourceBundle$Control;)Ljava/util/ResourceBundle;", "", ApiSince=9)]
public static Java.Util.ResourceBundle GetBundle (string baseName, Java.Util.Locale targetLocale, Java.Util.ResourceBundle.Control control);
static member GetBundle : string * Java.Util.Locale * Java.Util.ResourceBundle.Control -> Java.Util.ResourceBundle

Parameters

baseName
String String

the base name of a resource bundle

targetLocale
Locale Locale

the target locale of the resource bundle

control
ResourceBundle.Control ResourceBundle.Control

the control that control the access sequence

Returns

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.

GetBundle(String, Locale, ClassLoader, ResourceBundle+Control) GetBundle(String, Locale, ClassLoader, ResourceBundle+Control)

Finds the named resource bundle for the specified base name and control.

[Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;Ljava/util/ResourceBundle$Control;)Ljava/util/ResourceBundle;", "", ApiSince=9)]
public static Java.Util.ResourceBundle GetBundle (string baseName, Java.Util.Locale targetLocale, Java.Lang.ClassLoader loader, Java.Util.ResourceBundle.Control control);
static member GetBundle : string * Java.Util.Locale * Java.Lang.ClassLoader * Java.Util.ResourceBundle.Control -> Java.Util.ResourceBundle

Parameters

baseName
String String

the base name of a resource bundle

targetLocale
Locale Locale

the target locale of the resource bundle

loader
ClassLoader ClassLoader

the class loader to load resource

control
ResourceBundle.Control ResourceBundle.Control

the control that control the access sequence

Returns

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