Context.CreateContext(ContextParams) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立具有特定屬性與行為的情境。
[Android.Runtime.Register("createContext", "(Landroid/content/ContextParams;)Landroid/content/Context;", "GetCreateContext_Landroid_content_ContextParams_Handler", ApiSince=31)]
public virtual Android.Content.Context CreateContext(Android.Content.ContextParams contextParams);
[<Android.Runtime.Register("createContext", "(Landroid/content/ContextParams;)Landroid/content/Context;", "GetCreateContext_Landroid_content_ContextParams_Handler", ApiSince=31)>]
abstract member CreateContext : Android.Content.ContextParams -> Android.Content.Context
override this.CreateContext : Android.Content.ContextParams -> Android.Content.Context
參數
- contextParams
- ContextParams
新情境應該如何行為的參數。
傳回
一個包含指定行為的上下文。
- 屬性
備註
建立具有特定屬性與行為的情境。
Java 文件 android.content.Context.createContext(android.content.ContextParams)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。