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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。