语言

Settings.System.PutConfiguration(ContentResolver, Configuration) 方法

定义

用于从 Configuration 对象编写一批与配置相关的设置的便利函数。

[Android.Runtime.Register("putConfiguration", "(Landroid/content/ContentResolver;Landroid/content/res/Configuration;)Z", "")]
public static bool PutConfiguration(Android.Content.ContentResolver? cr, Android.Content.Res.Configuration? config);
[<Android.Runtime.Register("putConfiguration", "(Landroid/content/ContentResolver;Landroid/content/res/Configuration;)Z", "")>]
static member PutConfiguration : Android.Content.ContentResolver * Android.Content.Res.Configuration -> bool

参数

cr
ContentResolver

要访问的 ContentResolver。

config
Configuration

要写入的设置。

返回

如果设置了值,则为 true;对于数据库错误,则为 false

特性

注解

用于从 Configuration 对象编写一批与配置相关的设置的便利函数。

Java文档android.provider.Settings.System.putConfiguration(android.content.ContentResolver, android.content.res.Configuration)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于