Android Guides | Samples

Java.Lang.Class.GetResource Method

Returns the URL of the given resource, or null if the resource is not found.

Syntax

[Android.Runtime.Register("getResource", "(Ljava/lang/String;)Ljava/net/URL;", "")]
public URL GetResource (String resName)

See Also

Parameters

resourceName

Remarks

Returns the URL of the given resource, or null if the resource is not found. The mapping between the resource name and the URL is managed by the class' class loader.

[Android Documentation]

Requirements

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