Share via


ClassLoader.GetSystemResource(String) Method

Definition

Find a resource of the specified name from the search path used to load classes.

[Android.Runtime.Register("getSystemResource", "(Ljava/lang/String;)Ljava/net/URL;", "")]
public static Java.Net.URL? GetSystemResource (string? name);
[<Android.Runtime.Register("getSystemResource", "(Ljava/lang/String;)Ljava/net/URL;", "")>]
static member GetSystemResource : string -> Java.Net.URL

Parameters

name
String

The resource name

Returns

URL

A java.net.URL URL to the resource; null if the resource could not be found, a URL could not be constructed to locate the resource, the resource is in a package that is not opened unconditionally or access to the resource is denied by the security manager.

Attributes

Remarks

Find a resource of the specified name from the search path used to load classes. This method locates the resource through the system class loader (see #getSystemClassLoader()).

Added in 1.1.

Java documentation for java.lang.ClassLoader.getSystemResource(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

See also