Settings.System.PutConfiguration(ContentResolver, Configuration) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于从 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
参数
要访问的 ContentResolver。
- config
- Configuration
要写入的设置。
返回
如果设置了值,则为 true;对于数据库错误,则为 false
- 特性
注解
用于从 Configuration 对象编写一批与配置相关的设置的便利函数。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。