Partager via


Class.EnclosingClass Property

Definition

Returns the immediately enclosing class of the underlying class.

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

Property Value

the immediately enclosing class of the underlying class

Attributes

Remarks

Returns the immediately enclosing class of the underlying class. If the underlying class is a top level class this method returns null.

Added in 1.5.

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

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