Class.CanonicalName Property

Definition

Returns the canonical name of the underlying class as defined by the Java Language Specification.

public string? CanonicalName { [Android.Runtime.Register("getCanonicalName", "()Ljava/lang/String;", "")] get; }
[<get: Android.Runtime.Register("getCanonicalName", "()Ljava/lang/String;", "")>]
member this.CanonicalName : string

Property Value

the canonical name of the underlying class if it exists, and null otherwise.

Attributes

Remarks

Returns the canonical name of the underlying class as defined by the Java Language Specification. Returns null if the underlying class does not have a canonical name (i.e., if it is a local or anonymous class or an array whose component type does not have a canonical name).

Added in 1.5.

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

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