Udostępnij za pośrednictwem


Class.ClassLoader Property

Definition

Returns the class loader for the class.

public Java.Lang.ClassLoader? ClassLoader { [Android.Runtime.Register("getClassLoader", "()Ljava/lang/ClassLoader;", "")] get; }
[<get: Android.Runtime.Register("getClassLoader", "()Ljava/lang/ClassLoader;", "")>]
member this.ClassLoader : Java.Lang.ClassLoader

Property Value

the class loader that loaded the class or interface represented by this object.

Attributes

Remarks

Returns the class loader for the class. Some implementations may use null to represent the bootstrap class loader. This method will return null in such implementations if this class was loaded by the bootstrap class loader.

If this object represents a primitive type or void, null is returned.

Java documentation for java.lang.Class.getClassLoader().

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