Class.DeclaringClass Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If the class or interface represented by this Class
object
is a member of another class, returns the Class
object
representing the class in which it was declared.
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 declaring class for this class
- Attributes
Remarks
If the class or interface represented by this Class
object is a member of another class, returns the Class
object representing the class in which it was declared. This method returns null if this class or interface is not a member of any other class. If this Class
object represents an array class, a primitive type, or void,then this method returns null.
Added in 1.1.
Java documentation for java.lang.Class.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.