Android Guides | Samples

Android.Content.Res.Resources.GetResourceName Method

Return the full name for a given resource identifier.

Syntax

[Android.Runtime.Register("getResourceName", "(I)Ljava/lang/String;", "GetGetResourceName_IHandler")]
public virtual String GetResourceName (Int32 resid)

See Also

Parameters

resid
The resource identifier whose name is to be retrieved.

Exceptions

TypeReason
!:NoType:android/content/res/Resources$NotFoundException;Href=../../../../reference/android/content/res/Resources.NotFoundException.htmlThrows 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".

[Android Documentation]

Requirements

Namespace: Android.Content.Res
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1