Settings.Global.PutString(ContentResolver, String, String) Method

Definition

Store a name/value pair into the database.

[Android.Runtime.Register("putString", "(Landroid/content/ContentResolver;Ljava/lang/String;Ljava/lang/String;)Z", "")]
public static bool PutString (Android.Content.ContentResolver? resolver, string? name, string? value);
[<Android.Runtime.Register("putString", "(Landroid/content/ContentResolver;Ljava/lang/String;Ljava/lang/String;)Z", "")>]
static member PutString : Android.Content.ContentResolver * string * string -> bool

Parameters

resolver
ContentResolver

to access the database with

name
String

to store

value
String

to associate with the name

Returns

true if the value was set, false on database errors

Attributes

Remarks

Store a name/value pair into the database.

Java documentation for android.provider.Settings.Global.putString(android.content.ContentResolver, 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