Freigeben über


DexFile.LoadClass(String, ClassLoader) Method

Definition

Loads a class.

[Android.Runtime.Register("loadClass", "(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;", "")]
public Java.Lang.Class? LoadClass (string? name, Java.Lang.ClassLoader? loader);
[<Android.Runtime.Register("loadClass", "(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;", "")>]
member this.LoadClass : string * Java.Lang.ClassLoader -> Java.Lang.Class

Parameters

name
String

the class name, which should look like "java/lang/String"

loader
ClassLoader

the class loader that tries to load the class (in most cases the caller of the method

Returns

Attributes

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