Class.ForName Class.ForName Method

Definition

Overloads

ForName(String) ForName(String)

Returns a Class object which represents the class with the given name.

ForName(String, Boolean, ClassLoader) ForName(String, Boolean, ClassLoader)

Returns a Class object which represents the class with the given name.

ForName(String) ForName(String)

Returns a Class object which represents the class with the given name.

[Android.Runtime.Register("forName", "(Ljava/lang/String;)Ljava/lang/Class;", "")]
public static Java.Lang.Class ForName (string className);
static member ForName : string -> Java.Lang.Class

Parameters

className
String String

Returns

Exceptions

if the requested class cannot be found.

if an error occurs during linkage

if an exception occurs during static initialization of a class.

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.

ForName(String, Boolean, ClassLoader) ForName(String, Boolean, ClassLoader)

Returns a Class object which represents the class with the given name.

[Android.Runtime.Register("forName", "(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;", "")]
public static Java.Lang.Class ForName (string name, bool initialize, Java.Lang.ClassLoader loader);
static member ForName : string * bool * Java.Lang.ClassLoader -> Java.Lang.Class

Parameters

name
String String
initialize
Boolean Boolean

Returns

Exceptions

if the requested class cannot be found.

if an error occurs during linkage

if an exception occurs during static initialization of a class.

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