Resources.GetResourceName(Int32) 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.
Return the full name for a given resource identifier.
[Android.Runtime.Register("getResourceName", "(I)Ljava/lang/String;", "GetGetResourceName_IHandler")]
public virtual string? GetResourceName (int resid);
[<Android.Runtime.Register("getResourceName", "(I)Ljava/lang/String;", "GetGetResourceName_IHandler")>]
abstract member GetResourceName : int -> string
override this.GetResourceName : int -> string
Parameters
- resid
- Int32
The resource identifier whose name is to be retrieved.
Returns
A string holding the name of the resource.
- Attributes
Exceptions
Throws NotFoundException if the given ID does not exist.
Remarks
Return the full name for a given resource identifier. This name is a single string of the form "package:type/entry".
Java documentation for android.content.res.Resources.getResourceName(int)
.
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.