Partager via


ClassLoader.FindSystemClass(String) Method

Definition

Finds a class with the specified binary name, loading it if necessary.

[Android.Runtime.Register("findSystemClass", "(Ljava/lang/String;)Ljava/lang/Class;", "")]
protected Java.Lang.Class? FindSystemClass (string? name);
[<Android.Runtime.Register("findSystemClass", "(Ljava/lang/String;)Ljava/lang/Class;", "")>]
member this.FindSystemClass : string -> Java.Lang.Class

Parameters

name
String

The binary name of the class

Returns

The Class object for the specified name

Attributes

Exceptions

if the class can not be found.

Remarks

Finds a class with the specified binary name, loading it if necessary.

This method loads the class through the system class loader (see #getSystemClassLoader()). The Class object returned might have more than one ClassLoader associated with it. Subclasses of ClassLoader need not usually invoke this method, because most class loaders need to override just #findClass(String).

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