ResourceBundle.Control.ToResourceName(String, 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.
Converts the given bundleName to the form required
by the ClassLoader#getResource ClassLoader.getResource
method by replacing all occurrences of '.' in
bundleName with '/' and appending a
'.' and the given file suffix.
[Android.Runtime.Register("toResourceName", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public string ToResourceName(string bundleName, string suffix);
[<Android.Runtime.Register("toResourceName", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
member this.ToResourceName : string * string -> string
Parameters
- bundleName
- String
the bundle name
- suffix
- String
the file type suffix
Returns
the converted resource name
- Attributes
Remarks
Converts the given bundleName to the form required by the ClassLoader#getResource ClassLoader.getResource method by replacing all occurrences of '.' in bundleName with '/' and appending a '.' and the given file suffix. For example, if bundleName is "foo.bar.MyResources_ja_JP" and suffix is "properties", then "foo/bar/MyResources_ja_JP.properties" is returned.
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.