Aracılığıyla paylaş


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 <tt>URL</tt> object for reading the resource, or null if the resource could not be found

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