共用方式為


AbstractPreferences.Name Method

Definition

Implements the name method as per the specification in Preferences#name().

[Android.Runtime.Register("name", "()Ljava/lang/String;", "GetNameHandler")]
public override string? Name ();
[<Android.Runtime.Register("name", "()Ljava/lang/String;", "GetNameHandler")>]
override this.Name : unit -> string

Returns

this preference node's name, relative to its parent.

Attributes

Remarks

Implements the name method as per the specification in Preferences#name().

This implementation merely returns the name that was passed to this node's constructor.

Java documentation for java.util.prefs.AbstractPreferences.name().

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