Language

Settings.NameValueTable.PutString Method

Definition

Submits a setting name and text value through a provider insertion.

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

Parameters

resolver
ContentResolver

The resolver used to send the name/value insertion.

uri
Uri

The provider URI to which the name/value pair is submitted.

name
String

The setting name stored in the insertion's name field.

value
String

The setting text stored in the insertion's value field.

Returns

true when the insertion call returns without a SQL exception; false when a SQL exception is caught.

Attributes

Remarks

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