Compartir a través de


Parameter.Name Property

Definition

Returns the name of the parameter.

public string Name { [Android.Runtime.Register("getName", "()Ljava/lang/String;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getName", "()Ljava/lang/String;", "", ApiSince=26)>]
member this.Name : string

Property Value

The name of the parameter, either provided by the class file or synthesized if the class file does not provide a name.

Attributes

Remarks

Returns the name of the parameter. If the parameter's name is #isNamePresent() present, then this method returns the name provided by the class file. Otherwise, this method synthesizes a name of the form argN, where N is the index of the parameter in the descriptor of the method which declares the parameter.

Java documentation for java.lang.reflect.Parameter.getName().

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