次の方法で共有


ClassLoader.FindClass(String) Method

Definition

Finds the class with the specified binary name.

[Android.Runtime.Register("findClass", "(Ljava/lang/String;)Ljava/lang/Class;", "GetFindClass_Ljava_lang_String_Handler")]
protected virtual Java.Lang.Class? FindClass (string? name);
[<Android.Runtime.Register("findClass", "(Ljava/lang/String;)Ljava/lang/Class;", "GetFindClass_Ljava_lang_String_Handler")>]
abstract member FindClass : string -> Java.Lang.Class
override this.FindClass : string -> Java.Lang.Class

Parameters

name
String

The binary name of the class

Returns

The resulting Class object

Attributes

Exceptions

if the class cannot be found.

Remarks

Finds the class with the specified binary name. This method should be overridden by class loader implementations that follow the delegation model for loading classes, and will be invoked by the #loadClass <tt>loadClass</tt> method after checking the parent class loader for the requested class. The default implementation throws a ClassNotFoundException.

Added in 1.2.

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