ResourceBundle.GetBundle 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.
Overloads
| GetBundle(String) |
Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. |
| GetBundle(String, Locale) |
Gets a resource bundle using the specified base name and locale, and the caller's class loader. |
| GetBundle(String, ResourceBundle+Control) |
Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. |
| GetBundle(String, Locale, ClassLoader) |
Gets a resource bundle using the specified base name, locale, and class loader. |
| GetBundle(String, Locale, ResourceBundle+Control) |
Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. |
| GetBundle(String, Locale, ClassLoader, ResourceBundle+Control) |
Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. |
GetBundle(String)
Gets a resource bundle using the specified base name, the default locale, and the caller's class loader.
[Android.Runtime.Register("getBundle", "(Ljava/lang/String;)Ljava/util/ResourceBundle;", "")]
public static Java.Util.ResourceBundle? GetBundle (string? baseName);
[<Android.Runtime.Register("getBundle", "(Ljava/lang/String;)Ljava/util/ResourceBundle;", "")>]
static member GetBundle : string -> Java.Util.ResourceBundle
Parameters
- baseName
- String
the base name of the resource bundle, a fully qualified class name
Returns
a resource bundle for the given base name and the default locale
- Attributes
Exceptions
if the ResourceBundle cannot be found.
Remarks
Java documentation for java.util.ResourceBundle.getBundle(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.
Applies to
GetBundle(String, Locale)
Gets a resource bundle using the specified base name and locale, and the caller's class loader.
[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);
[<Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;", "")>]
static member GetBundle : string * Java.Util.Locale -> Java.Util.ResourceBundle
Parameters
- baseName
- String
the base name of the resource bundle, a fully qualified class name
- locale
- Locale
the locale for which a resource bundle is desired
Returns
a resource bundle for the given base name and locale
- Attributes
Exceptions
if the resource bundle cannot be found.
Remarks
Java documentation for java.util.ResourceBundle.getBundle(java.lang.String, java.util.Locale).
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
GetBundle(String, ResourceBundle+Control)
Gets a resource bundle using the specified base name, the default locale, and the caller's class loader.
[Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/ResourceBundle$Control;)Ljava/util/ResourceBundle;", "")]
public static Java.Util.ResourceBundle? GetBundle (string? baseName, Java.Util.ResourceBundle.Control? control);
[<Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/ResourceBundle$Control;)Ljava/util/ResourceBundle;", "")>]
static member GetBundle : string * Java.Util.ResourceBundle.Control -> Java.Util.ResourceBundle
Parameters
- baseName
- String
the base name of the resource bundle, a fully qualified class name
- control
- ResourceBundle.Control
the control that control the access sequence
Returns
a resource bundle for the given base name and the default locale
- Attributes
Remarks
Java documentation for java.util.ResourceBundle.getBundle(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.
Applies to
GetBundle(String, Locale, ClassLoader)
Gets a resource bundle using the specified base name, locale, and class loader.
[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);
[<Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;)Ljava/util/ResourceBundle;", "")>]
static member GetBundle : string * Java.Util.Locale * Java.Lang.ClassLoader -> Java.Util.ResourceBundle
Parameters
- baseName
- String
the base name of the resource bundle, a fully qualified class name
- locale
- Locale
the locale for which a resource bundle is desired
- loader
- ClassLoader
the class loader from which to load the resource bundle
Returns
a resource bundle for the given base name and locale
- Attributes
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.
Applies to
GetBundle(String, Locale, ResourceBundle+Control)
Gets a resource bundle using the specified base name, the default locale, and the caller's class loader.
[Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;Ljava/util/ResourceBundle$Control;)Ljava/util/ResourceBundle;", "")]
public static Java.Util.ResourceBundle? GetBundle (string? baseName, Java.Util.Locale? targetLocale, Java.Util.ResourceBundle.Control? control);
[<Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;Ljava/util/ResourceBundle$Control;)Ljava/util/ResourceBundle;", "")>]
static member GetBundle : string * Java.Util.Locale * Java.Util.ResourceBundle.Control -> Java.Util.ResourceBundle
Parameters
- baseName
- String
the base name of the resource bundle, a fully qualified class name
- targetLocale
- Locale
the target locale of the resource bundle
- control
- ResourceBundle.Control
the control that control the access sequence
Returns
a resource bundle for the given base name and the default locale
- Attributes
Remarks
Java documentation for java.util.ResourceBundle.getBundle(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.
Applies to
GetBundle(String, Locale, ClassLoader, ResourceBundle+Control)
Gets a resource bundle using the specified base name, the default locale, and the caller's class loader.
[Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;Ljava/util/ResourceBundle$Control;)Ljava/util/ResourceBundle;", "")]
public static Java.Util.ResourceBundle? GetBundle (string? baseName, Java.Util.Locale? targetLocale, Java.Lang.ClassLoader? loader, Java.Util.ResourceBundle.Control? control);
[<Android.Runtime.Register("getBundle", "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;Ljava/util/ResourceBundle$Control;)Ljava/util/ResourceBundle;", "")>]
static member GetBundle : string * Java.Util.Locale * Java.Lang.ClassLoader * Java.Util.ResourceBundle.Control -> Java.Util.ResourceBundle
Parameters
- baseName
- String
the base name of the resource bundle, a fully qualified class name
- targetLocale
- Locale
the target locale of the resource bundle
- loader
- ClassLoader
the class loader to load resource
- control
- ResourceBundle.Control
the control that control the access sequence
Returns
a resource bundle for the given base name and the default locale
- Attributes
Remarks
Java documentation for java.util.ResourceBundle.getBundle(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.