Udostępnij za pośrednictwem


AbstractPreferences.PutSpi(String, String) Method

Definition

Put the given key-value association into this preference node.

[Android.Runtime.Register("putSpi", "(Ljava/lang/String;Ljava/lang/String;)V", "GetPutSpi_Ljava_lang_String_Ljava_lang_String_Handler")]
protected abstract void PutSpi (string? key, string? value);
[<Android.Runtime.Register("putSpi", "(Ljava/lang/String;Ljava/lang/String;)V", "GetPutSpi_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member PutSpi : string * string -> unit

Parameters

key
String

the key

value
String

the value

Attributes

Remarks

Put the given key-value association into this preference node. It is guaranteed that key and value are non-null and of legal length. Also, it is guaranteed that this node has not been removed. (The implementor needn't check for any of these things.)

This method is invoked with the lock on this node held.

Java documentation for java.util.prefs.AbstractPreferences.putSpi(java.lang.String, 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