MutableContextWrapper.SetBaseContext(Context) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
更改此 ContextWrapper 的基本上下文。
[Android.Runtime.Register("setBaseContext", "(Landroid/content/Context;)V", "GetSetBaseContext_Landroid_content_Context_Handler")]
public virtual void SetBaseContext(Android.Content.Context? base);
[<Android.Runtime.Register("setBaseContext", "(Landroid/content/Context;)V", "GetSetBaseContext_Landroid_content_Context_Handler")>]
abstract member SetBaseContext : Android.Content.Context -> unit
override this.SetBaseContext : Android.Content.Context -> unit
参数
- base
- Context
此包装器的新基上下文。
- 属性
注解
更改此 ContextWrapper 的基本上下文。 然后,所有调用都将委托给基本上下文。 与 ContextWrapper 不同,即使已设置基础上下文,也可以更改基本上下文。
Java文档android.content.MutableContextWrapper.setBaseContext(android.content.Context)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。