共用方式為


Class.DescriptorString Method

Definition

Returns the descriptor string of the entity (class, interface, array class, primitive type, or void) represented by this Class object.

[Android.Runtime.Register("descriptorString", "()Ljava/lang/String;", "", ApiSince=34)]
public string DescriptorString ();
[<Android.Runtime.Register("descriptorString", "()Ljava/lang/String;", "", ApiSince=34)>]
abstract member DescriptorString : unit -> string
override this.DescriptorString : unit -> string

Returns

the descriptor string for this Class object

Implements

Attributes

Remarks

Returns the descriptor string of the entity (class, interface, array class, primitive type, or void) represented by this Class object.

If this Class object represents a class or interface, not an array class, then: <ul> <li> The result is a field descriptor (JVMS {

Added in 12.

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

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