다음을 통해 공유


Enum.DeclaringClass Property

Definition

Returns the Class object corresponding to this enum constant's enum type.

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

Property Value

the Class object corresponding to this enum constant's enum type

Attributes

Remarks

Returns the Class object corresponding to this enum constant's enum type. Two enum constants e1 and e2 are of the same enum type if and only if e1.getDeclaringClass() == e2.getDeclaringClass(). (The value returned by this method may differ from the one returned by the Object#getClass method for enum constants with constant-specific class bodies.)

Java documentation for java.lang.Enum.getDeclaringClass().

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