ClassLoader.LoadClass ClassLoader.LoadClass Method

Definition

Overloads

LoadClass(String) LoadClass(String)

Loads the class with the specified name.

LoadClass(String, Boolean) LoadClass(String, Boolean)

Loads the class with the specified name, optionally linking it after loading.

LoadClass(String) LoadClass(String)

Loads the class with the specified name.

[Android.Runtime.Register("loadClass", "(Ljava/lang/String;)Ljava/lang/Class;", "GetLoadClass_Ljava_lang_String_Handler")]
public virtual Java.Lang.Class LoadClass (string name);
abstract member LoadClass : string -> Java.Lang.Class
override this.LoadClass : string -> Java.Lang.Class

Parameters

name
String String

Returns

Exceptions

if the class can not be found.

Remarks

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.

LoadClass(String, Boolean) LoadClass(String, Boolean)

Loads the class with the specified name, optionally linking it after loading.

[Android.Runtime.Register("loadClass", "(Ljava/lang/String;Z)Ljava/lang/Class;", "GetLoadClass_Ljava_lang_String_ZHandler")]
protected virtual Java.Lang.Class LoadClass (string name, bool resolve);
abstract member LoadClass : string * bool -> Java.Lang.Class
override this.LoadClass : string * bool -> Java.Lang.Class

Parameters

name
String String
resolve
Boolean Boolean

Indicates if the class should be resolved after loading. This parameter is ignored on the Android reference implementation; classes are not resolved.

Returns

Exceptions

if the class can not be found.

Remarks

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