共用方式為


AbstractPreferences.Remove(String) Method

Definition

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

[Android.Runtime.Register("remove", "(Ljava/lang/String;)V", "GetRemove_Ljava_lang_String_Handler")]
public override void Remove (string? key);
[<Android.Runtime.Register("remove", "(Ljava/lang/String;)V", "GetRemove_Ljava_lang_String_Handler")>]
override this.Remove : string -> unit

Parameters

key
String

key whose mapping is to be removed from the preference node.

Attributes

Remarks

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

This implementation obtains this preference node's lock, checks that the node has not been removed, invokes #removeSpi(String) and if there are any preference change listeners, enqueues a notification event for processing by the event dispatch thread.

Java documentation for java.util.prefs.AbstractPreferences.remove(java.lang.String).

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